bstraehle commited on
Commit
147936b
1 Parent(s): 1d7db6b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
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
- 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):
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(