Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -124,7 +124,7 @@ def predict(message, history, temperature, top_p):
|
|
124 |
partial_text = ""
|
125 |
for new_text in streamer:
|
126 |
partial_text += new_text
|
127 |
-
yield partial_text
|
128 |
|
129 |
# After full generation, update state with assistant's response
|
130 |
history.append({"role": "assistant", "content": partial_text})
|
|
|
124 |
partial_text = ""
|
125 |
for new_text in streamer:
|
126 |
partial_text += new_text
|
127 |
+
yield partial_text
|
128 |
|
129 |
# After full generation, update state with assistant's response
|
130 |
history.append({"role": "assistant", "content": partial_text})
|