PraisonAI 0.0.59rc7__cp312-cp312-manylinux_2_35_x86_64.whl → 0.0.59rc9__cp312-cp312-manylinux_2_35_x86_64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of PraisonAI might be problematic. Click here for more details.

praisonai/cli.py CHANGED
@@ -29,12 +29,13 @@ try:
29
29
  except ImportError:
30
30
  GRADIO_AVAILABLE = False
31
31
 
32
- def stream_subprocess(command):
32
+ def stream_subprocess(command, env=None):
33
33
  """
34
34
  Execute a subprocess command and stream the output to the terminal in real-time.
35
35
 
36
36
  Args:
37
37
  command (list): A list containing the command and its arguments.
38
+ env (dict, optional): Environment variables for the subprocess.
38
39
  """
39
40
  process = subprocess.Popen(
40
41
  command,
@@ -42,7 +43,8 @@ def stream_subprocess(command):
42
43
  stderr=subprocess.STDOUT,
43
44
  text=True,
44
45
  bufsize=1,
45
- universal_newlines=True
46
+ universal_newlines=True,
47
+ env=env
46
48
  )
47
49
 
48
50
  for line in iter(process.stdout.readline, ''):
@@ -148,19 +150,24 @@ class PraisonAI:
148
150
 
149
151
  try:
150
152
  result = subprocess.check_output(['conda', 'env', 'list'])
151
- if 'unsloth_env' in result.decode('utf-8'):
152
- print("Conda environment 'unsloth_env' found.")
153
+ if 'prasion_env' in result.decode('utf-8'):
154
+ print("Conda environment 'prasion_env' found.")
153
155
  else:
154
156
  raise subprocess.CalledProcessError(1, 'grep')
155
157
  except subprocess.CalledProcessError:
156
- print("Conda environment 'unsloth_env' not found. Setting it up...")
158
+ print("Conda environment 'prasion_env' not found. Setting it up...")
157
159
  from praisonai.setup.setup_conda_env import main as setup_conda_main
158
160
  setup_conda_main()
159
161
  print("All packages installed.")
160
162
 
161
163
  train_args = sys.argv[2:] # Get all arguments after 'train'
162
164
  train_script_path = os.path.join(package_root, 'train.py')
163
- stream_subprocess(['conda', 'run', '--name', 'unsloth_env', 'python', train_script_path, 'train'])
165
+
166
+ # Set environment variables
167
+ env = os.environ.copy()
168
+ env['PYTHONUNBUFFERED'] = '1'
169
+
170
+ stream_subprocess(['conda', 'run', '--no-capture-output', '--name', 'prasion_env', 'python', '-u', train_script_path, 'train'] + train_args, env=env)
164
171
  return
165
172
 
166
173
  invocation_cmd = "praisonai"
praisonai/deploy.py CHANGED
@@ -56,7 +56,7 @@ class CloudDeployer:
56
56
  file.write("FROM python:3.11-slim\n")
57
57
  file.write("WORKDIR /app\n")
58
58
  file.write("COPY . .\n")
59
- file.write("RUN pip install flask praisonai==0.0.59rc7 gunicorn markdown\n")
59
+ file.write("RUN pip install flask praisonai==0.0.59rc9 gunicorn markdown\n")
60
60
  file.write("EXPOSE 8080\n")
61
61
  file.write('CMD ["gunicorn", "-b", "0.0.0.0:8080", "api:app"]\n')
62
62
 
@@ -51,8 +51,6 @@ output_dir: "outputs"
51
51
 
52
52
  quantization_method:
53
53
  - "q4_k_m"
54
- - "q8_0"
55
- - "q5_k_m"
56
54
 
57
55
  ollama_model: "llama3.1-tamilan-test"
58
56
  model_parameters: "8b"
@@ -33,7 +33,7 @@ else
33
33
  fi
34
34
 
35
35
  # Create and activate the Conda environment
36
- ENV_NAME="unsloth_env"
36
+ ENV_NAME="prasion_env"
37
37
  if conda info --envs | grep -q $ENV_NAME; then
38
38
  echo "Environment $ENV_NAME already exists. Recreating..."
39
39
  conda env remove -y -n $ENV_NAME # Remove existing environment
praisonai/train.py CHANGED
@@ -3,6 +3,7 @@ import os
3
3
  import sys
4
4
  import yaml
5
5
  import torch
6
+ import shutil
6
7
  from transformers import TextStreamer
7
8
  from unsloth import FastLanguageModel, is_bfloat16_supported
8
9
  from trl import SFTTrainer
@@ -178,7 +179,7 @@ class train:
178
179
 
179
180
  def prepare_modelfile_content(self):
180
181
  output_model = self.config["hf_model_name"]
181
- return f"""FROM {output_model}/unsloth.Q5_K_M.gguf
182
+ return f"""FROM {output_model}/unsloth.Q4_K_M.gguf
182
183
 
183
184
  TEMPLATE \"\"\"Below are some instructions that describe some tasks. Write responses that appropriately complete each request.{{{{ if .Prompt }}}}
184
185
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PraisonAI
3
- Version: 0.0.59rc7
3
+ Version: 0.0.59rc9
4
4
  Summary: 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.
5
5
  Author: Mervin Praison
6
6
  Requires-Python: >=3.10,<3.13
@@ -3,8 +3,8 @@ praisonai/__main__.py,sha256=MVgsjMThjBexHt4nhd760JCqvP4x0IQcwo8kULOK4FQ,144
3
3
  praisonai/agents_generator.py,sha256=8d1WRbubvEkBrW1HZ7_xnGyqgJi0yxmXa3MgTIqef1c,19127
4
4
  praisonai/auto.py,sha256=9spTXqj47Hmmqv5QHRYE_RzSVHH_KoPbaZjskUj2UcE,7895
5
5
  praisonai/chainlit_ui.py,sha256=bNR7s509lp0I9JlJNvwCZRUZosC64qdvlFCt8NmFamQ,12216
6
- praisonai/cli.py,sha256=x6WfPbF-0vuFgehkmLlvnk2I95KZ_vz8bzpcQob4JVQ,17117
7
- praisonai/deploy.py,sha256=BOEhEODsStphfVLER6tfryOzkmZbb5XuKGUCsJWrBb0,6031
6
+ praisonai/cli.py,sha256=WQf6NG1xEcyE9ySR4ahSiVDxCkedGV6A0Yaf78uYXQ0,17411
7
+ praisonai/deploy.py,sha256=_jT6RcTHzxeWKtizSyaGmfE48FKbvw___CHn6jOuWnc,6031
8
8
  praisonai/inbuilt_tools/__init__.py,sha256=mUKnbL6Gram9c9f2m8wJwEzURBLmPEOcHzwySBH89YA,74
9
9
  praisonai/inbuilt_tools/autogen_tools.py,sha256=svYkM2N7DVFvbiwgoAS7U_MqTOD8rHf8VD3BaFUV5_Y,14907
10
10
  praisonai/inc/__init__.py,sha256=sPDlYBBwdk0VlWzaaM_lG0_LD07lS2HRGvPdxXJFiYg,62
@@ -23,12 +23,12 @@ praisonai/public/movie.svg,sha256=aJ2EQ8vXZusVsF2SeuAVxP4RFJzQ14T26ejrGYdBgzk,12
23
23
  praisonai/public/thriller.svg,sha256=2dYY72EcgbEyTxS4QzjAm37Y4srtPWEW4vCMFki98ZI,3163
24
24
  praisonai/setup/__init__.py ,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
25
25
  praisonai/setup/build.py,sha256=NyTAXQ_UZ8vKo_KwCINp8ctmauZyCMDkw1rys3ay0ec,646
26
- praisonai/setup/config.yaml,sha256=t2WtEDT4JE4yVMAg7hKD18XER3qz41-V36HHYp07yEo,1162
26
+ praisonai/setup/config.yaml,sha256=DbfEJyvWTDACScH9XquGGsNYcyudpEwpawd_rgaPN98,1138
27
27
  praisonai/setup/post_install.py,sha256=hXukn_7bL64vE582SZcS-9MiZGeJj6hN7upoR1oJ-Bo,576
28
28
  praisonai/setup/setup_conda_env.py,sha256=4QiWrqgEObivzOMwfJgWaCPpUEpB68cQ6lFwVwFoufk,816
29
- praisonai/setup/setup_conda_env.sh,sha256=grRG_FGYHAYMnHNyQrcZxVxSSLghSWUQuW4DHdIKmPU,2718
29
+ praisonai/setup/setup_conda_env.sh,sha256=Ao5kCgIVamCcCKhrXWYELTUr5fQlRQmWwDYjuTxBH6s,2718
30
30
  praisonai/test.py,sha256=OL-wesjA5JTohr8rtr6kWoaS4ImkJg2l0GXJ-dUUfRU,4090
31
- praisonai/train.py,sha256=Kuckd3TjW6ZYTISyXpL0upB-NibsEmwk1BMhRHPXba0,9200
31
+ praisonai/train.py,sha256=M2rpBca3k4uQvmoKh-0r_2MTlWLYL7ffKMtlU8hF7k8,9214
32
32
  praisonai/ui/chat.py,sha256=B4F1R7qP-0c-elg8WcRsYlr6-FkmHWtdunGIzU7WrDM,9321
33
33
  praisonai/ui/code.py,sha256=GcOr8lNah4AgI2RcIKmgjehzSl-KNu7x6UHrghixeaM,10095
34
34
  praisonai/ui/context.py,sha256=oWO2I_WBZb7kZnuXItf18EJX0ZQv-1nAd8rxhwhuuDU,11871
@@ -40,8 +40,8 @@ praisonai/ui/public/movie.svg,sha256=aJ2EQ8vXZusVsF2SeuAVxP4RFJzQ14T26ejrGYdBgzk
40
40
  praisonai/ui/public/thriller.svg,sha256=2dYY72EcgbEyTxS4QzjAm37Y4srtPWEW4vCMFki98ZI,3163
41
41
  praisonai/ui/sql_alchemy.py,sha256=HsyeRq-G9qbQobHWpTJHHKQiT4FvYw_7iuv-2PNh0IU,27419
42
42
  praisonai/version.py,sha256=ugyuFliEqtAwQmH4sTlc16YXKYbFWDmfyk87fErB8-8,21
43
- praisonai-0.0.59rc7.dist-info/LICENSE,sha256=kqvFysVlnFxYOu0HxCe2HlmZmJtdmNGOxWRRkT9TsWc,1035
44
- praisonai-0.0.59rc7.dist-info/METADATA,sha256=hkzIsYz9KrsGHpblhJoyxfaWiCs_OGCzz8gtm_WOaKc,11151
45
- praisonai-0.0.59rc7.dist-info/WHEEL,sha256=HBsDV7Hj4OTiS1GX6ua7iQXUQTB9UHftbBxr7Q8Xm9c,110
46
- praisonai-0.0.59rc7.dist-info/entry_points.txt,sha256=jB078LEGLY3Ky_indhclomRIVVpXrPSksHjJ-tcBZ-o,133
47
- praisonai-0.0.59rc7.dist-info/RECORD,,
43
+ praisonai-0.0.59rc9.dist-info/LICENSE,sha256=kqvFysVlnFxYOu0HxCe2HlmZmJtdmNGOxWRRkT9TsWc,1035
44
+ praisonai-0.0.59rc9.dist-info/METADATA,sha256=UwVe6VMWXUoygLpeg695CvLu9vK_ikjQ0L-eZ1AE7RM,11151
45
+ praisonai-0.0.59rc9.dist-info/WHEEL,sha256=HBsDV7Hj4OTiS1GX6ua7iQXUQTB9UHftbBxr7Q8Xm9c,110
46
+ praisonai-0.0.59rc9.dist-info/entry_points.txt,sha256=jB078LEGLY3Ky_indhclomRIVVpXrPSksHjJ-tcBZ-o,133
47
+ praisonai-0.0.59rc9.dist-info/RECORD,,