Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -116,8 +116,8 @@ def get_messages(client, thread):
|
|
116 |
return messages
|
117 |
|
118 |
#XXXXX
|
119 |
-
def extract_file_id(
|
120 |
-
for step in
|
121 |
if hasattr(step["step_details"], "tool_calls"):
|
122 |
for tool_call in step['step_details'].tool_calls:
|
123 |
if hasattr(tool_call, "code_interpreter") and hasattr(tool_call.code_interpreter, "outputs"):
|
|
|
116 |
return messages
|
117 |
|
118 |
#XXXXX
|
119 |
+
def extract_file_id(step_details):
|
120 |
+
for step in step_details:
|
121 |
if hasattr(step["step_details"], "tool_calls"):
|
122 |
for tool_call in step['step_details'].tool_calls:
|
123 |
if hasattr(tool_call, "code_interpreter") and hasattr(tool_call.code_interpreter, "outputs"):
|