paralym commited on
Commit
7f8e5de
1 Parent(s): f3ab73a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -352,9 +352,9 @@ def bot(history):
352
  t.start()
353
 
354
  outputs = []
355
- for text in streamer:
356
- outputs.append(text)
357
- print("### text",text)
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