alexkueck commited on
Commit
83cbfcc
1 Parent(s): 793ae81

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -213,7 +213,8 @@ def create_assistant(prompt, file):
213
  run = wait_on_run(run, thread, client)
214
  response = get_response(thread, client, assistant.id)
215
  print("response...................")
216
- result = response[1].content[0].text.value
 
217
  return result
218
 
219
  ###################################################
 
213
  run = wait_on_run(run, thread, client)
214
  response = get_response(thread, client, assistant.id)
215
  print("response...................")
216
+ print(response)
217
+ result = response.data[1].content[0].text.value
218
  return result
219
 
220
  ###################################################