paralym commited on
Commit
4d6e62d
1 Parent(s): c75fb6d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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