Spaces:
Build error
Build error
fixup
Browse files
app.py
CHANGED
|
@@ -32,7 +32,7 @@ def chat(message, history=[]):
|
|
| 32 |
response_ids = chat_history_ids[:, bot_input_ids.shape[-1]:][0]
|
| 33 |
response = tokenizer.decode(response_ids, skip_special_tokens=True)
|
| 34 |
history.append((message, response, chat_history_ids))
|
| 35 |
-
return
|
| 36 |
|
| 37 |
|
| 38 |
def feedback(text):
|
|
|
|
| 32 |
response_ids = chat_history_ids[:, bot_input_ids.shape[-1]:][0]
|
| 33 |
response = tokenizer.decode(response_ids, skip_special_tokens=True)
|
| 34 |
history.append((message, response, chat_history_ids))
|
| 35 |
+
return history, history, feedback(message)
|
| 36 |
|
| 37 |
|
| 38 |
def feedback(text):
|