pycoze 0.1.65__tar.gz → 0.1.67__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. {pycoze-0.1.65 → pycoze-0.1.67}/PKG-INFO +1 -1
  2. {pycoze-0.1.65 → pycoze-0.1.67}/pycoze/ui/base.py +7 -7
  3. {pycoze-0.1.65 → pycoze-0.1.67}/pycoze.egg-info/PKG-INFO +1 -1
  4. {pycoze-0.1.65 → pycoze-0.1.67}/setup.py +1 -1
  5. {pycoze-0.1.65 → pycoze-0.1.67}/LICENSE +0 -0
  6. {pycoze-0.1.65 → pycoze-0.1.67}/README.md +0 -0
  7. {pycoze-0.1.65 → pycoze-0.1.67}/pycoze/__init__.py +0 -0
  8. {pycoze-0.1.65 → pycoze-0.1.67}/pycoze/access/__init__.py +0 -0
  9. {pycoze-0.1.65 → pycoze-0.1.67}/pycoze/access/tool_for_bot.py +0 -0
  10. {pycoze-0.1.65 → pycoze-0.1.67}/pycoze/bot/__init__.py +0 -0
  11. {pycoze-0.1.65 → pycoze-0.1.67}/pycoze/bot/agent/__init__.py +0 -0
  12. {pycoze-0.1.65 → pycoze-0.1.67}/pycoze/bot/agent/agent.py +0 -0
  13. {pycoze-0.1.65 → pycoze-0.1.67}/pycoze/bot/agent/agent_types/__init__.py +0 -0
  14. {pycoze-0.1.65 → pycoze-0.1.67}/pycoze/bot/agent/agent_types/openai_func_call_agent.py +0 -0
  15. {pycoze-0.1.65 → pycoze-0.1.67}/pycoze/bot/agent/agent_types/react_agent.py +0 -0
  16. {pycoze-0.1.65 → pycoze-0.1.67}/pycoze/bot/agent/agent_types/react_prompt.py +0 -0
  17. {pycoze-0.1.65 → pycoze-0.1.67}/pycoze/bot/agent/assistant.py +0 -0
  18. {pycoze-0.1.65 → pycoze-0.1.67}/pycoze/bot/agent/chat.py +0 -0
  19. {pycoze-0.1.65 → pycoze-0.1.67}/pycoze/bot/bot.py +0 -0
  20. {pycoze-0.1.65 → pycoze-0.1.67}/pycoze/gpu/__init__.py +0 -0
  21. {pycoze-0.1.65 → pycoze-0.1.67}/pycoze/gpu/gpu_reserve.py +0 -0
  22. {pycoze-0.1.65 → pycoze-0.1.67}/pycoze/module.py +0 -0
  23. {pycoze-0.1.65 → pycoze-0.1.67}/pycoze/ui/__init__.py +0 -0
  24. {pycoze-0.1.65 → pycoze-0.1.67}/pycoze/ui/color.py +0 -0
  25. {pycoze-0.1.65 → pycoze-0.1.67}/pycoze/ui/typ.py +0 -0
  26. {pycoze-0.1.65 → pycoze-0.1.67}/pycoze/ui/ui_def.py +0 -0
  27. {pycoze-0.1.65 → pycoze-0.1.67}/pycoze/utils/__init__.py +0 -0
  28. {pycoze-0.1.65 → pycoze-0.1.67}/pycoze/utils/arg.py +0 -0
  29. {pycoze-0.1.65 → pycoze-0.1.67}/pycoze/utils/text_or_file.py +0 -0
  30. {pycoze-0.1.65 → pycoze-0.1.67}/pycoze.egg-info/SOURCES.txt +0 -0
  31. {pycoze-0.1.65 → pycoze-0.1.67}/pycoze.egg-info/dependency_links.txt +0 -0
  32. {pycoze-0.1.65 → pycoze-0.1.67}/pycoze.egg-info/top_level.txt +0 -0
  33. {pycoze-0.1.65 → pycoze-0.1.67}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pycoze
3
- Version: 0.1.65
3
+ Version: 0.1.67
4
4
  Summary: Package for pycoze only!
5
5
  Author: Yuan Jie Xiong
6
6
  Author-email: aiqqqqqqq@qq.com
@@ -18,16 +18,16 @@ def get_ui():
18
18
  return {}
19
19
  stack = inspect.stack()
20
20
  stack_files = list(reversed([s.filename.replace("\\", "/") for s in stack]))
21
- match_item = None
21
+ match_index = None
22
22
  for f in stack_files:
23
- for v in params["uiData"]["uiFiles"]:
23
+ for i, v in enumerate(params["uiData"]["uiFiles"]):
24
24
  if v == f:
25
- match_item = v
25
+ match_index = i
26
26
  break
27
- if match_item:
27
+ if match_index is not None:
28
28
  break
29
29
 
30
- if not match_item:
30
+ if match_index is None:
31
31
  raise Exception("uiData not found for file")
32
32
 
33
33
  by = params["uiData"]["by"]
@@ -35,12 +35,12 @@ def get_ui():
35
35
  for i in range(10):
36
36
  try:
37
37
  if by == "file":
38
- json_file = match_item["Jsonfile"]
38
+ json_file = params["uiData"]["Jsonfiles"][match_index]
39
39
  with open(json_file, "r", encoding="utf-8") as f:
40
40
  return json.load(f)
41
41
  else:
42
42
  assert by == "node"
43
- workflow_file = match_item["workflowFile"]
43
+ workflow_file = match_item["_workflowFile"]
44
44
  node_id = match_item["nodeId"]
45
45
  with open(workflow_file, "r", encoding="utf-8") as f:
46
46
  cells = json.load(f)["graph"]["cells"]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pycoze
3
- Version: 0.1.65
3
+ Version: 0.1.67
4
4
  Summary: Package for pycoze only!
5
5
  Author: Yuan Jie Xiong
6
6
  Author-email: aiqqqqqqq@qq.com
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="pycoze",
5
- version="0.1.65",
5
+ version="0.1.67",
6
6
  packages=find_packages(),
7
7
  install_requires=[],
8
8
  author="Yuan Jie Xiong",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes