Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -74,7 +74,7 @@ def stream_chat(message, history: list, temperature: float, max_new_tokens: int)
|
|
74 |
generated_text = ""
|
75 |
for new_text in response:
|
76 |
generated_text += new_text
|
77 |
-
|
78 |
|
79 |
|
80 |
|
|
|
74 |
generated_text = ""
|
75 |
for new_text in response:
|
76 |
generated_text += new_text
|
77 |
+
yield(new_text, flush=True, end='')
|
78 |
|
79 |
|
80 |
|