Spaces:
Sleeping
Sleeping
Yingxu He
commited on
Update app.py
Browse files
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 |
-
|
|
|
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 |
|