Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -352,9 +352,9 @@ def bot(history):
|
|
352 |
t.start()
|
353 |
|
354 |
outputs = []
|
355 |
-
for
|
356 |
-
outputs.append(
|
357 |
-
print("###
|
358 |
our_chatbot.conversation.messages[-1][-1] = "".join(outputs)
|
359 |
history[-1] = [text, "".join(outputs)]
|
360 |
yield history
|
|
|
352 |
t.start()
|
353 |
|
354 |
outputs = []
|
355 |
+
for stream_token in streamer:
|
356 |
+
outputs.append(stream_token)
|
357 |
+
print("### stream_token",stream_token)
|
358 |
our_chatbot.conversation.messages[-1][-1] = "".join(outputs)
|
359 |
history[-1] = [text, "".join(outputs)]
|
360 |
yield history
|