Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -222,14 +222,11 @@ def _launch_demo(args):
|
|
| 222 |
)
|
| 223 |
for response in responses:
|
| 224 |
response = response.choices[0].delta.content
|
| 225 |
-
|
| 226 |
-
|
| 227 |
-
|
| 228 |
-
|
| 229 |
-
|
| 230 |
-
# response_text.append(ele['box'])
|
| 231 |
-
# response_text = ''.join(response_text)
|
| 232 |
-
_chatbot[-1] = (_parse_text(chat_query), _remove_image_special(response))
|
| 233 |
yield _chatbot
|
| 234 |
|
| 235 |
# if len(response) > 1:
|
|
|
|
| 222 |
)
|
| 223 |
for response in responses:
|
| 224 |
response = response.choices[0].delta.content
|
| 225 |
+
response_text = []
|
| 226 |
+
for ele in response:
|
| 227 |
+
response_text.append(ele)
|
| 228 |
+
response_text = ''.join(response_text)
|
| 229 |
+
_chatbot[-1] = (_parse_text(chat_query), _remove_image_special(response_text))
|
|
|
|
|
|
|
|
|
|
| 230 |
yield _chatbot
|
| 231 |
|
| 232 |
# if len(response) > 1:
|