Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -41,8 +41,8 @@ def chat(message, history):
|
|
41 |
assistant = load_assistant()
|
42 |
|
43 |
# TODO: Use Gradio session to support multiple users
|
44 |
-
if thread == None or len(history) == 0:
|
45 |
-
|
46 |
|
47 |
create_message(thread, message)
|
48 |
|
|
|
41 |
assistant = load_assistant()
|
42 |
|
43 |
# TODO: Use Gradio session to support multiple users
|
44 |
+
#if thread == None or len(history) == 0:
|
45 |
+
thread = create_thread()
|
46 |
|
47 |
create_message(thread, message)
|
48 |
|