Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -122,7 +122,7 @@ def bot(history, system_prompt=""):
|
|
122 |
system_prompt = system_message
|
123 |
|
124 |
history[-1][1] = ""
|
125 |
-
for character in generate(
|
126 |
history[-1][1] = character
|
127 |
yield history
|
128 |
|
|
|
122 |
system_prompt = system_message
|
123 |
|
124 |
history[-1][1] = ""
|
125 |
+
for character in generate(history[-1][0], history[:-1]):
|
126 |
history[-1][1] = character
|
127 |
yield history
|
128 |
|