Update app.py
Browse files
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 |
-
|
|
|
|
| 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 |
###################################################
|