awacke1 commited on
Commit
20415a9
·
1 Parent(s): efe1021

Update app.py

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