Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -124,13 +124,12 @@ def get_run_step_details(run_steps):
|
|
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 |
-
|
128 |
-
content = client.files.content(file_id)
|
129 |
print("\n222")
|
130 |
-
print(
|
131 |
print("\n333")
|
132 |
#img = generate_markdown_image(content.arrayBuffer())
|
133 |
-
return
|
134 |
|
135 |
def get_messages(client, thread):
|
136 |
messages = client.beta.threads.messages.list(
|
|
|
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 |
+
download = f"Download file here: https://platform.openai.com/storage/files/{file_id}"
|
|
|
128 |
print("\n222")
|
129 |
+
print(download)
|
130 |
print("\n333")
|
131 |
#img = generate_markdown_image(content.arrayBuffer())
|
132 |
+
return download
|
133 |
|
134 |
def get_messages(client, thread):
|
135 |
messages = client.beta.threads.messages.list(
|