Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -104,7 +104,9 @@ def chat(message, history):
|
|
104 |
list_history = history_useful[0].split('</s> <s>')
|
105 |
history.append((list_history[-2], list_history[-1]))
|
106 |
#ret =
|
107 |
-
|
|
|
|
|
108 |
return history, history
|
109 |
|
110 |
gr.Interface(
|
|
|
104 |
list_history = history_useful[0].split('</s> <s>')
|
105 |
history.append((list_history[-2], list_history[-1]))
|
106 |
#ret =
|
107 |
+
|
108 |
+
if UseMemory:
|
109 |
+
store_message(message, response) # Save to dataset -- uncomment with code above, create a dataset to store and add your HF_TOKEN from profile to this repo to use.
|
110 |
return history, history
|
111 |
|
112 |
gr.Interface(
|