alexkueck commited on
Commit
abf8bdf
1 Parent(s): 0179ea7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -209,9 +209,9 @@ def create_assistant(prompt, file):
209
  file_neu = client.files.create(file=open(file,"rb",),purpose="assistants",)
210
  # Update Assistant
211
  assistant = client.beta.assistants.update(assistant.id,tools=[{"type": "code_interpreter"}, {"type": "retrieval"}],file_ids=[file_neu.id],)
212
- thread, run = create_thread_and_run(prompt, client)
213
  run = wait_on_run(run, thread, client)
214
- response = get_response(thread, client)
215
  result = assistant.content[0].text.value
216
  return result
217
 
 
209
  file_neu = client.files.create(file=open(file,"rb",),purpose="assistants",)
210
  # Update Assistant
211
  assistant = client.beta.assistants.update(assistant.id,tools=[{"type": "code_interpreter"}, {"type": "retrieval"}],file_ids=[file_neu.id],)
212
+ thread, run = create_thread_and_run(prompt, client, assistant.id)
213
  run = wait_on_run(run, thread, client)
214
+ response = get_response(thread, client, assistant.id)
215
  result = assistant.content[0].text.value
216
  return result
217