bstraehle commited on
Commit
42e5bf7
1 Parent(s): 99e3bfa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
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
- print(tool_call.code_interpreter.outputs[0].image.file_id)
124
- print("\n\n")
 
 
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(