Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -119,11 +119,15 @@ def get_messages(client, thread):
|
|
119 |
def extract_file_ids(step_details):
|
120 |
file_ids = []
|
121 |
|
122 |
-
|
|
|
123 |
|
|
|
124 |
for tool_call in tool_calls:
|
125 |
-
|
126 |
-
|
|
|
|
|
127 |
|
128 |
for output in outputs:
|
129 |
if 'image' in output:
|
|
|
119 |
def extract_file_ids(step_details):
|
120 |
file_ids = []
|
121 |
|
122 |
+
print("\n\n\n" + step_details)
|
123 |
+
tool_calls = step_details.tool_calls
|
124 |
|
125 |
+
print("\n\n\n" + tool_calls)
|
126 |
for tool_call in tool_calls:
|
127 |
+
print("\n\n\n" + tool_call)
|
128 |
+
code_interpreter = tool_call.code_interpreter
|
129 |
+
print("\n\n\n" + code_interpreter)
|
130 |
+
outputs = code_interpreter.outputs
|
131 |
|
132 |
for output in outputs:
|
133 |
if 'image' in output:
|