bstraehle commited on
Commit
097a32f
1 Parent(s): 8b60e3b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -116,8 +116,8 @@ def get_messages(client, thread):
116
  return messages
117
 
118
  #XXXXX
119
- def extract_file_id(data):
120
- for step in data["data"]:
121
  if hasattr(step["step_details"], "tool_calls"):
122
  for tool_call in step['step_details'].tool_calls:
123
  if hasattr(tool_call, "code_interpreter") and hasattr(tool_call.code_interpreter, "outputs"):
 
116
  return messages
117
 
118
  #XXXXX
119
+ def extract_file_id(step_details):
120
+ for step in step_details:
121
  if hasattr(step["step_details"], "tool_calls"):
122
  for tool_call in step['step_details'].tool_calls:
123
  if hasattr(tool_call, "code_interpreter") and hasattr(tool_call.code_interpreter, "outputs"):