Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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()
|