bstraehle commited on
Commit
29c3f78
1 Parent(s): 29c09e1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -119,11 +119,15 @@ def get_messages(client, thread):
119
  def extract_file_ids(step_details):
120
  file_ids = []
121
 
122
- tool_calls = step_details.get('tool_calls', [])
 
123
 
 
124
  for tool_call in tool_calls:
125
- code_interpreter = tool_call.get('code_interpreter', {})
126
- outputs = code_interpreter.get('outputs', [])
 
 
127
 
128
  for output in outputs:
129
  if 'image' in output:
 
119
  def extract_file_ids(step_details):
120
  file_ids = []
121
 
122
+ print("\n\n\n" + step_details)
123
+ tool_calls = step_details.tool_calls
124
 
125
+ print("\n\n\n" + tool_calls)
126
  for tool_call in tool_calls:
127
+ print("\n\n\n" + tool_call)
128
+ code_interpreter = tool_call.code_interpreter
129
+ print("\n\n\n" + code_interpreter)
130
+ outputs = code_interpreter.outputs
131
 
132
  for output in outputs:
133
  if 'image' in output: