Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -122,15 +122,14 @@ def get_run_step_details(run_steps):
|
|
122 |
# [CodeInterpreterOutputImage(image=CodeInterpreterOutputImageImage(file_id='file-qmr1d6ObICSjyGvmoncXvBPj'), type='image')]
|
123 |
if len(tool_call.code_interpreter.outputs) > 0:
|
124 |
if hasattr(tool_call.code_interpreter.outputs[0], "image"):
|
125 |
-
print("\
|
126 |
file_id = tool_call.code_interpreter.outputs[0].image.file_id
|
127 |
print(file_id)
|
128 |
-
file = client.files.retrieve(file_id)
|
129 |
-
print(file)
|
130 |
content = client.files.content(file_id)
|
131 |
-
|
132 |
-
print(
|
133 |
-
print(
|
|
|
134 |
return content
|
135 |
|
136 |
def get_messages(client, thread):
|
|
|
122 |
# [CodeInterpreterOutputImage(image=CodeInterpreterOutputImageImage(file_id='file-qmr1d6ObICSjyGvmoncXvBPj'), type='image')]
|
123 |
if len(tool_call.code_interpreter.outputs) > 0:
|
124 |
if hasattr(tool_call.code_interpreter.outputs[0], "image"):
|
125 |
+
print("\n111")
|
126 |
file_id = tool_call.code_interpreter.outputs[0].image.file_id
|
127 |
print(file_id)
|
|
|
|
|
128 |
content = client.files.content(file_id)
|
129 |
+
print("\n222")
|
130 |
+
print(content)
|
131 |
+
print("\n333")
|
132 |
+
#img = generate_markdown_image(content.arrayBuffer())
|
133 |
return content
|
134 |
|
135 |
def get_messages(client, thread):
|