Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -71,10 +71,10 @@ def stream_chat(message, history: list, temperature: float, max_new_tokens: int)
|
|
71 |
|
72 |
response = model.chat(**generate_kwargs)
|
73 |
|
74 |
-
|
75 |
for new_text in response:
|
76 |
-
|
77 |
-
yield
|
78 |
|
79 |
|
80 |
|
|
|
71 |
|
72 |
response = model.chat(**generate_kwargs)
|
73 |
|
74 |
+
buffer = ""
|
75 |
for new_text in response:
|
76 |
+
buffer += new_text
|
77 |
+
yield buffer
|
78 |
|
79 |
|
80 |
|