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.
- {pycoze-0.1.65 → pycoze-0.1.67}/PKG-INFO +1 -1
- {pycoze-0.1.65 → pycoze-0.1.67}/pycoze/ui/base.py +7 -7
- {pycoze-0.1.65 → pycoze-0.1.67}/pycoze.egg-info/PKG-INFO +1 -1
- {pycoze-0.1.65 → pycoze-0.1.67}/setup.py +1 -1
- {pycoze-0.1.65 → pycoze-0.1.67}/LICENSE +0 -0
- {pycoze-0.1.65 → pycoze-0.1.67}/README.md +0 -0
- {pycoze-0.1.65 → pycoze-0.1.67}/pycoze/__init__.py +0 -0
- {pycoze-0.1.65 → pycoze-0.1.67}/pycoze/access/__init__.py +0 -0
- {pycoze-0.1.65 → pycoze-0.1.67}/pycoze/access/tool_for_bot.py +0 -0
- {pycoze-0.1.65 → pycoze-0.1.67}/pycoze/bot/__init__.py +0 -0
- {pycoze-0.1.65 → pycoze-0.1.67}/pycoze/bot/agent/__init__.py +0 -0
- {pycoze-0.1.65 → pycoze-0.1.67}/pycoze/bot/agent/agent.py +0 -0
- {pycoze-0.1.65 → pycoze-0.1.67}/pycoze/bot/agent/agent_types/__init__.py +0 -0
- {pycoze-0.1.65 → pycoze-0.1.67}/pycoze/bot/agent/agent_types/openai_func_call_agent.py +0 -0
- {pycoze-0.1.65 → pycoze-0.1.67}/pycoze/bot/agent/agent_types/react_agent.py +0 -0
- {pycoze-0.1.65 → pycoze-0.1.67}/pycoze/bot/agent/agent_types/react_prompt.py +0 -0
- {pycoze-0.1.65 → pycoze-0.1.67}/pycoze/bot/agent/assistant.py +0 -0
- {pycoze-0.1.65 → pycoze-0.1.67}/pycoze/bot/agent/chat.py +0 -0
- {pycoze-0.1.65 → pycoze-0.1.67}/pycoze/bot/bot.py +0 -0
- {pycoze-0.1.65 → pycoze-0.1.67}/pycoze/gpu/__init__.py +0 -0
- {pycoze-0.1.65 → pycoze-0.1.67}/pycoze/gpu/gpu_reserve.py +0 -0
- {pycoze-0.1.65 → pycoze-0.1.67}/pycoze/module.py +0 -0
- {pycoze-0.1.65 → pycoze-0.1.67}/pycoze/ui/__init__.py +0 -0
- {pycoze-0.1.65 → pycoze-0.1.67}/pycoze/ui/color.py +0 -0
- {pycoze-0.1.65 → pycoze-0.1.67}/pycoze/ui/typ.py +0 -0
- {pycoze-0.1.65 → pycoze-0.1.67}/pycoze/ui/ui_def.py +0 -0
- {pycoze-0.1.65 → pycoze-0.1.67}/pycoze/utils/__init__.py +0 -0
- {pycoze-0.1.65 → pycoze-0.1.67}/pycoze/utils/arg.py +0 -0
- {pycoze-0.1.65 → pycoze-0.1.67}/pycoze/utils/text_or_file.py +0 -0
- {pycoze-0.1.65 → pycoze-0.1.67}/pycoze.egg-info/SOURCES.txt +0 -0
- {pycoze-0.1.65 → pycoze-0.1.67}/pycoze.egg-info/dependency_links.txt +0 -0
- {pycoze-0.1.65 → pycoze-0.1.67}/pycoze.egg-info/top_level.txt +0 -0
- {pycoze-0.1.65 → pycoze-0.1.67}/setup.cfg +0 -0
@@ -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
|
-
|
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
|
-
|
25
|
+
match_index = i
|
26
26
|
break
|
27
|
-
if
|
27
|
+
if match_index is not None:
|
28
28
|
break
|
29
29
|
|
30
|
-
if
|
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 =
|
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["
|
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"]
|
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
|
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
|
File without changes
|
File without changes
|
File without changes
|