Spaces:
Sleeping
Sleeping
Fix the reset_memory option in alfred.run
Browse files
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,
|
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 |
|