Spaces:
Runtime error
Runtime error
Commit
·
71d36d1
1
Parent(s):
e8be56f
str
Browse files
app.py
CHANGED
@@ -142,7 +142,7 @@ def stream(input_text) -> Generator:
|
|
142 |
while True:
|
143 |
try:
|
144 |
next_token = q.get(True, timeout=60)
|
145 |
-
print("next_token: ", next_token)
|
146 |
if next_token == None:
|
147 |
next_token = ""
|
148 |
# counter = counter + 1
|
@@ -151,7 +151,7 @@ def stream(input_text) -> Generator:
|
|
151 |
break
|
152 |
if next_token is job_done:
|
153 |
break
|
154 |
-
content += next_token
|
155 |
yield next_token, content
|
156 |
except Empty:
|
157 |
continue
|
|
|
142 |
while True:
|
143 |
try:
|
144 |
next_token = q.get(True, timeout=60)
|
145 |
+
print("next_token: ", str(next_token))
|
146 |
if next_token == None:
|
147 |
next_token = ""
|
148 |
# counter = counter + 1
|
|
|
151 |
break
|
152 |
if next_token is job_done:
|
153 |
break
|
154 |
+
content += str(next_token)
|
155 |
yield next_token, content
|
156 |
except Empty:
|
157 |
continue
|