Spaces:
Sleeping
Sleeping
added introductory prompt
Browse files- backend.py +2 -2
backend.py
CHANGED
@@ -145,8 +145,8 @@ def handle_query(query_str: str,
|
|
145 |
outputs.append(token)
|
146 |
print(f"Generated token: {token}")
|
147 |
|
148 |
-
|
149 |
-
yield CompletionResponse(text=
|
150 |
|
151 |
"""if sources:
|
152 |
sources_str = ", ".join(sources)
|
|
|
145 |
outputs.append(token)
|
146 |
print(f"Generated token: {token}")
|
147 |
|
148 |
+
#yield "".join(outputs)
|
149 |
+
yield CompletionResponse(text=outputs, delta=token)
|
150 |
|
151 |
"""if sources:
|
152 |
sources_str = ", ".join(sources)
|