Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -120,8 +120,10 @@ def get_run_step_details(run_steps):
|
|
120 |
if len(tool_call.code_interpreter.outputs) > 0:
|
121 |
if hasattr(tool_call.code_interpreter.outputs[0], "image"):
|
122 |
print("\n222")
|
123 |
-
|
124 |
-
|
|
|
|
|
125 |
|
126 |
def get_messages(client, thread):
|
127 |
messages = client.beta.threads.messages.list(
|
|
|
120 |
if len(tool_call.code_interpreter.outputs) > 0:
|
121 |
if hasattr(tool_call.code_interpreter.outputs[0], "image"):
|
122 |
print("\n222")
|
123 |
+
file_id = tool_call.code_interpreter.outputs[0].image.file_id
|
124 |
+
content = client.files.content(file_id)
|
125 |
+
print(content)
|
126 |
+
return content
|
127 |
|
128 |
def get_messages(client, thread):
|
129 |
messages = client.beta.threads.messages.list(
|