cycls 0.0.2.39__py3-none-any.whl → 0.0.2.41__py3-none-any.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.
cycls/sdk.py CHANGED
@@ -47,7 +47,8 @@ class Agent:
47
47
  if len(self.registered_functions) > 1:
48
48
  print(f"⚠️ Warning: Multiple agents found. Running '{i['name']}'.")
49
49
  print(f"🚀 Starting local server at localhost:{port}")
50
- i["config"][0], i["config"][6] = self.theme, False
50
+ # i["config"][0], i["config"][6] = self.theme, False
51
+ i["config"][0] = self.theme
51
52
  uvicorn.run(web(i["func"], *i["config"]), host="0.0.0.0", port=port)
52
53
  return
53
54
 
@@ -63,9 +64,8 @@ class Agent:
63
64
  if len(self.registered_functions) > 1:
64
65
  print(f"⚠️ Warning: Multiple agents found. Running '{i['name']}'.")
65
66
 
66
- i["config"][6] = False
67
+ # i["config"][6] = False
67
68
 
68
- # copy={str(cycls_path.joinpath('theme')):"public", str(cycls_path)+"/web.py":"web.py"}
69
69
  copy={str(self.theme):"public", str(cycls_path)+"/web.py":"web.py"}
70
70
  copy.update({i:i for i in self.copy})
71
71
 
@@ -115,5 +115,5 @@ class Agent:
115
115
 
116
116
  # docker system prune -af
117
117
  # poetry config pypi-token.pypi <your-token>
118
- # poetry run python agent-cycls.py
118
+ # poetry run python agent-deploy.py
119
119
  # poetry publish --build