Spaces:
Running
Running
Update assistants.py
Browse files- assistants.py +2 -4
assistants.py
CHANGED
@@ -100,9 +100,7 @@ def create_message(thread, msg):
|
|
100 |
content=msg,
|
101 |
)
|
102 |
|
103 |
-
|
104 |
-
print(str)
|
105 |
-
gr.Info(str, duration=15)
|
106 |
return message
|
107 |
|
108 |
def create_run(assistant, thread):
|
@@ -164,7 +162,7 @@ def execute_tool_calls(run_steps):
|
|
164 |
step_details = step.step_details
|
165 |
str = get_json("step_details", step_details)
|
166 |
print(str)
|
167 |
-
|
168 |
|
169 |
if hasattr(step_details, "tool_calls"):
|
170 |
for tool_call in step_details.tool_calls:
|
|
|
100 |
content=msg,
|
101 |
)
|
102 |
|
103 |
+
print(get_json("message", message))
|
|
|
|
|
104 |
return message
|
105 |
|
106 |
def create_run(assistant, thread):
|
|
|
162 |
step_details = step.step_details
|
163 |
str = get_json("step_details", step_details)
|
164 |
print(str)
|
165 |
+
gr.Info(str, duration=30)
|
166 |
|
167 |
if hasattr(step_details, "tool_calls"):
|
168 |
for tool_call in step_details.tool_calls:
|