renwei2024 commited on
Commit
02edf81
·
verified ·
1 Parent(s): fa432cf

Fix the reset_memory option in alfred.run

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -43,7 +43,7 @@ def chat(query, reset, history):
43
  • `reset` : True → wipe conversation memory before answering
44
  • `history`: running list of (user, assistant) tuples for the Chatbot
45
  """
46
- answer = alfred.run(query, reset_memory=reset)
47
  history = history + [(query, answer)]
48
  return "", history # clear textbox, update chat window
49
 
 
43
  • `reset` : True → wipe conversation memory before answering
44
  • `history`: running list of (user, assistant) tuples for the Chatbot
45
  """
46
+ answer = alfred.run(query, reset=reset)
47
  history = history + [(query, answer)]
48
  return "", history # clear textbox, update chat window
49