Spaces:
Sleeping
Sleeping
added text streamer
Browse files- backend.py +2 -1
backend.py
CHANGED
@@ -87,7 +87,8 @@ def handle_query(query_str, chathistory):
|
|
87 |
# Stream the response
|
88 |
outputs = []
|
89 |
for text in streaming_response.response_gen:
|
90 |
-
|
|
|
91 |
yield "".join(outputs)
|
92 |
|
93 |
|
|
|
87 |
# Stream the response
|
88 |
outputs = []
|
89 |
for text in streaming_response.response_gen:
|
90 |
+
|
91 |
+
outputs.append(str(text))
|
92 |
yield "".join(outputs)
|
93 |
|
94 |
|