Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -276,7 +276,7 @@ def chat(message, history, openai_api_key):
|
|
| 276 |
global client
|
| 277 |
|
| 278 |
assistant = get_current_agent()
|
| 279 |
-
|
| 280 |
|
| 281 |
create_message(client, thread, message)
|
| 282 |
run = create_run(client, assistant, thread)
|
|
|
|
| 276 |
global client
|
| 277 |
|
| 278 |
assistant = get_current_agent()
|
| 279 |
+
thread = get_current_thread()
|
| 280 |
|
| 281 |
create_message(client, thread, message)
|
| 282 |
run = create_run(client, assistant, thread)
|