Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -38,7 +38,7 @@ def chat_with_bot(message, history):
|
|
| 38 |
|
| 39 |
decoded = tokenizer.decode(outputs[0], skip_special_tokens=True)
|
| 40 |
response = decoded[len(prompt):].strip().split("\n")[0]
|
| 41 |
-
history.append(
|
| 42 |
return response, history
|
| 43 |
|
| 44 |
# ✅ gr.ChatInterface expects fn(message, history) → (response, updated_history)
|
|
|
|
| 38 |
|
| 39 |
decoded = tokenizer.decode(outputs[0], skip_special_tokens=True)
|
| 40 |
response = decoded[len(prompt):].strip().split("\n")[0]
|
| 41 |
+
history.append([message, response])
|
| 42 |
return response, history
|
| 43 |
|
| 44 |
# ✅ gr.ChatInterface expects fn(message, history) → (response, updated_history)
|