Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -55,7 +55,7 @@ def chat(message, history):
|
|
55 |
|
56 |
history_openai_format.append({"role": "user", "content": message})
|
57 |
|
58 |
-
if len(history_openai_format)
|
59 |
client, assistant, thread = init_assistant()
|
60 |
|
61 |
print("### history")
|
|
|
55 |
|
56 |
history_openai_format.append({"role": "user", "content": message})
|
57 |
|
58 |
+
if len(history_openai_format) == 1:
|
59 |
client, assistant, thread = init_assistant()
|
60 |
|
61 |
print("### history")
|