Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -256,12 +256,12 @@ def dash(text,session_ai,is_state=True):
|
|
256 |
txt=' '
|
257 |
for chunk in response:
|
258 |
if chunk is not None:
|
259 |
-
|
260 |
-
|
261 |
txt+=chunk.text
|
262 |
-
|
263 |
txt=chunk.text
|
264 |
-
|
265 |
|
266 |
|
267 |
yield txt,session_ai
|
|
|
256 |
txt=' '
|
257 |
for chunk in response:
|
258 |
if chunk is not None:
|
259 |
+
|
260 |
+
if is_state:
|
261 |
txt+=chunk.text
|
262 |
+
else:
|
263 |
txt=chunk.text
|
264 |
+
|
265 |
|
266 |
|
267 |
yield txt,session_ai
|