Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,7 +13,7 @@ def create_thread_id():
|
|
| 13 |
return thread_id
|
| 14 |
|
| 15 |
@observe()
|
| 16 |
-
def openai_chat(user_message,
|
| 17 |
if not streaming_chat_thread_id_state:
|
| 18 |
streaming_chat_thread_id_state = gr.State({ "thread_id": None})
|
| 19 |
print("======thread_id======")
|
|
|
|
| 13 |
return thread_id
|
| 14 |
|
| 15 |
@observe()
|
| 16 |
+
def openai_chat(user_message, streaming_chat_thread_id_state):
|
| 17 |
if not streaming_chat_thread_id_state:
|
| 18 |
streaming_chat_thread_id_state = gr.State({ "thread_id": None})
|
| 19 |
print("======thread_id======")
|