Yingxu He commited on
Commit
8356ff9
·
verified ·
1 Parent(s): 5aadeda

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -52,7 +52,8 @@ def bot(history):
52
  user_message = history[-1][0]
53
 
54
  for chunk in chain.stream({"text": user_message}):
55
- history[-1][1] += chunk.content
 
56
  yield history
57
 
58
 
 
52
  user_message = history[-1][0]
53
 
54
  for chunk in chain.stream({"text": user_message}):
55
+ print(chunk)
56
+ history[-1][1] += chunk["content"]
57
  yield history
58
 
59