Update main.py
Browse files
main.py
CHANGED
|
@@ -112,7 +112,7 @@ def chat(message: str, history):
|
|
| 112 |
|
| 113 |
for token in streamer:
|
| 114 |
result += token
|
| 115 |
-
history[-1] =
|
| 116 |
# Yielding history directly maps perfectly to gr.Chatbot
|
| 117 |
yield history
|
| 118 |
|
|
|
|
| 112 |
|
| 113 |
for token in streamer:
|
| 114 |
result += token
|
| 115 |
+
history[-1]["content"] = result
|
| 116 |
# Yielding history directly maps perfectly to gr.Chatbot
|
| 117 |
yield history
|
| 118 |
|