awacke1 commited on
Commit
6ca51ed
·
1 Parent(s): 377bdc5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -121,6 +121,7 @@ def chat(message, history):
121
  history_useful = add_note_to_history(response, history_useful)
122
  list_history = history_useful[0].split('</s> <s>')
123
  history.append((list_history[-2], list_history[-1]))
 
124
  return history, history
125
 
126
  gr.Interface(
@@ -132,4 +133,6 @@ gr.Interface(
132
  title=title,
133
  description=description,
134
  allow_flagging="never",
 
 
135
  ).launch()
 
121
  history_useful = add_note_to_history(response, history_useful)
122
  list_history = history_useful[0].split('</s> <s>')
123
  history.append((list_history[-2], list_history[-1]))
124
+ store_message((list_history[-2], list_history[-1])) # Save to dataset
125
  return history, history
126
 
127
  gr.Interface(
 
133
  title=title,
134
  description=description,
135
  allow_flagging="never",
136
+ description=f"Gradio chatbot backed by memory in a dataset repository.",
137
+ article=f"The dataset repo is [{DATASET_REPO_URL}]({DATASET_REPO_URL})"
138
  ).launch()