bstraehle commited on
Commit
0dd355b
1 Parent(s): c3c3292

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -116,11 +116,10 @@ def get_messages(client, thread):
116
  return messages
117
 
118
  #XXXXX
119
- def extract_file_ids(data):
120
  file_ids = []
121
- steps = data.get('data', [])
122
 
123
- for step in steps:
124
  step_details = step.get('step_details', {})
125
  tool_calls = step_details.get('tool_calls', [])
126
 
 
116
  return messages
117
 
118
  #XXXXX
119
+ def extract_file_ids(step_details):
120
  file_ids = []
 
121
 
122
+ for step in step_details:
123
  step_details = step.get('step_details', {})
124
  tool_calls = step_details.get('tool_calls', [])
125