Update app.py
Browse files
app.py
CHANGED
@@ -211,7 +211,7 @@ def create_assistant(prompt, file):
|
|
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)
|
213 |
run = wait_on_run(run, thread)
|
214 |
-
response = get_response(thread)
|
215 |
result = assistant.content[0].text.value
|
216 |
return result
|
217 |
|
|
|
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)
|
213 |
run = wait_on_run(run, thread)
|
214 |
+
response = get_response(thread)
|
215 |
result = assistant.content[0].text.value
|
216 |
return result
|
217 |
|