bstraehle commited on
Commit
422ed7b
1 Parent(s): 1ec4b78

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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) > 1:
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")