Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -356,10 +356,11 @@ def bot(history):
|
|
356 |
outputs = []
|
357 |
for stream_token in streamer:
|
358 |
outputs.append(stream_token)
|
359 |
-
print("### stream_token",stream_token)
|
360 |
-
our_chatbot.conversation.messages[-1][-1] = "".join(outputs)
|
361 |
history[-1] = [text, "".join(outputs)]
|
362 |
yield history
|
|
|
363 |
print("### turn end history", history)
|
364 |
print("### turn end conv",our_chatbot.conversation)
|
365 |
|
|
|
356 |
outputs = []
|
357 |
for stream_token in streamer:
|
358 |
outputs.append(stream_token)
|
359 |
+
# print("### stream_token",stream_token)
|
360 |
+
# our_chatbot.conversation.messages[-1][-1] = "".join(outputs)
|
361 |
history[-1] = [text, "".join(outputs)]
|
362 |
yield history
|
363 |
+
our_chatbot.conversation.messages[-1][-1] = "".join(outputs)
|
364 |
print("### turn end history", history)
|
365 |
print("### turn end conv",our_chatbot.conversation)
|
366 |
|