Spaces:
Sleeping
Sleeping
Commit
·
ffff3dc
1
Parent(s):
9dbf614
Update modules/chat_func.py
Browse files- modules/chat_func.py +1 -1
modules/chat_func.py
CHANGED
|
@@ -155,7 +155,7 @@ def stream_predict(
|
|
| 155 |
yield get_return_value()
|
| 156 |
error_json_str = ""
|
| 157 |
|
| 158 |
-
for chunk in
|
| 159 |
if counter == 0:
|
| 160 |
counter += 1
|
| 161 |
continue
|
|
|
|
| 155 |
yield get_return_value()
|
| 156 |
error_json_str = ""
|
| 157 |
|
| 158 |
+
for chunk in response.iter_lines():
|
| 159 |
if counter == 0:
|
| 160 |
counter += 1
|
| 161 |
continue
|