Skip to content

Commit 4472bfa

Browse files
Merge pull request #150 from MervinPraison/develop
Upgrading 0.0.65
2 parents 717476a + abf12b1 commit 4472bfa

File tree

7 files changed

+1738
-1642
lines changed

7 files changed

+1738
-1642
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM python:3.11-slim
22
WORKDIR /app
33
COPY . .
4-
RUN pip install flask praisonai==0.0.64 gunicorn markdown
4+
RUN pip install flask praisonai==0.0.65 gunicorn markdown
55
EXPOSE 8080
66
CMD ["gunicorn", "-b", "0.0.0.0:8080", "api:app"]

docs/api/praisonai/deploy.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ <h2 id="raises">Raises</h2>
110110
file.write(&#34;FROM python:3.11-slim\n&#34;)
111111
file.write(&#34;WORKDIR /app\n&#34;)
112112
file.write(&#34;COPY . .\n&#34;)
113-
file.write(&#34;RUN pip install flask praisonai==0.0.64 gunicorn markdown\n&#34;)
113+
file.write(&#34;RUN pip install flask praisonai==0.0.65 gunicorn markdown\n&#34;)
114114
file.write(&#34;EXPOSE 8080\n&#34;)
115115
file.write(&#39;CMD [&#34;gunicorn&#34;, &#34;-b&#34;, &#34;0.0.0.0:8080&#34;, &#34;api:app&#34;]\n&#39;)
116116

poetry.lock

Lines changed: 1722 additions & 1630 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

praisonai.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ class Praisonai < Formula
33

44
desc "AI tools for various AI applications"
55
homepage "https://github.com/MervinPraison/PraisonAI"
6-
url "https://github.com/MervinPraison/PraisonAI/archive/refs/tags/0.0.64.tar.gz"
6+
url "https://github.com/MervinPraison/PraisonAI/archive/refs/tags/0.0.65.tar.gz"
77
sha256 "1828fb9227d10f991522c3f24f061943a254b667196b40b1a3e4a54a8d30ce32" # Replace with actual SHA256 checksum
88
license "MIT"
99

praisonai/cli.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -286,10 +286,12 @@ def create_chainlit_chat_interface(self):
286286
if CHAINLIT_AVAILABLE:
287287
import praisonai
288288
os.environ["CHAINLIT_PORT"] = "8084"
289+
root_path = os.path.join(os.path.expanduser("~"), ".praison")
290+
os.environ["CHAINLIT_APP_ROOT"] = root_path
289291
public_folder = os.path.join(os.path.dirname(praisonai.__file__), 'public')
290-
if not os.path.exists("public"): # Check if the folder exists in the current directory
292+
if not os.path.exists(os.path.join(root_path, "public")): # Check if the folder exists in the current directory
291293
if os.path.exists(public_folder):
292-
shutil.copytree(public_folder, 'public', dirs_exist_ok=True)
294+
shutil.copytree(public_folder, os.path.join(root_path, "public"), dirs_exist_ok=True)
293295
logging.info("Public folder copied successfully!")
294296
else:
295297
logging.info("Public folder not found in the package.")
@@ -314,10 +316,12 @@ def create_code_interface(self):
314316
if CHAINLIT_AVAILABLE:
315317
import praisonai
316318
os.environ["CHAINLIT_PORT"] = "8086"
317-
public_folder = os.path.join(os.path.dirname(praisonai.__file__), 'public')
318-
if not os.path.exists("public"): # Check if the folder exists in the current directory
319+
root_path = os.path.join(os.path.expanduser("~"), ".praison")
320+
os.environ["CHAINLIT_APP_ROOT"] = root_path
321+
public_folder = os.path.join(os.path.dirname(__file__), 'public')
322+
if not os.path.exists(os.path.join(root_path, "public")): # Check if the folder exists in the current directory
319323
if os.path.exists(public_folder):
320-
shutil.copytree(public_folder, 'public', dirs_exist_ok=True)
324+
shutil.copytree(public_folder, os.path.join(root_path, "public"), dirs_exist_ok=True)
321325
logging.info("Public folder copied successfully!")
322326
else:
323327
logging.info("Public folder not found in the package.")

praisonai/deploy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def create_dockerfile(self):
5656
file.write("FROM python:3.11-slim\n")
5757
file.write("WORKDIR /app\n")
5858
file.write("COPY . .\n")
59-
file.write("RUN pip install flask praisonai==0.0.64 gunicorn markdown\n")
59+
file.write("RUN pip install flask praisonai==0.0.65 gunicorn markdown\n")
6060
file.write("EXPOSE 8080\n")
6161
file.write('CMD ["gunicorn", "-b", "0.0.0.0:8080", "api:app"]\n')
6262

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "PraisonAI"
3-
version = "0.0.64"
3+
version = "0.0.65"
44
description = "PraisonAI application combines AutoGen and CrewAI or similar frameworks into a low-code solution for building and managing multi-agent LLM systems, focusing on simplicity, customization, and efficient human-agent collaboration."
55
authors = ["Mervin Praison"]
66
license = ""
@@ -21,7 +21,7 @@ crewai = ">=0.32.0"
2121
markdown = ">=3.5"
2222
praisonai-tools = ">=0.0.7"
2323
pyparsing = ">=3.0.0"
24-
chainlit = {version = "^1.1.301", optional = true}
24+
chainlit = {version = "^1.1.404", optional = true}
2525
gradio = {version = ">=4.26.0", optional = true}
2626
flask = {version = ">=3.0.0", optional = true}
2727
agentops = {version = ">=0.2.6", optional = true}
@@ -70,7 +70,7 @@ mkdocstrings-python = "*"
7070
pdoc3 = "*"
7171
xmlrunner = "*"
7272
unittest2 = "*"
73-
chainlit = "^1.1.301"
73+
chainlit = "^1.1.404"
7474
gradio = ">=4.26.0"
7575
flask = ">=3.0.0"
7676
agentops = ">=0.2.6"

0 commit comments

Comments
 (0)