Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -204,8 +204,9 @@ def chat(message, history, with_defense,threshold):
|
|
204 |
|
205 |
# Initialize an empty string to store the generated text
|
206 |
partial_text = ""
|
207 |
-
|
208 |
-
|
|
|
209 |
yield partial_text
|
210 |
|
211 |
|
|
|
204 |
|
205 |
# Initialize an empty string to store the generated text
|
206 |
partial_text = ""
|
207 |
+
response_split=response.split(" ")
|
208 |
+
for new_text in response_split:
|
209 |
+
partial_text += (new_text+" ")
|
210 |
yield partial_text
|
211 |
|
212 |
|