bstraehle commited on
Commit
1d7db6b
1 Parent(s): 84cdf11

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -6
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("\n222")
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
- img = generate_markdown_image(content.arrayBuffer())
132
- print("\n\n")
133
- print(img)
 
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):