Spaces:
Sleeping
Sleeping
added memory
Browse files- backend.py +2 -2
backend.py
CHANGED
@@ -115,9 +115,9 @@ def handle_query(query_str, chat_history) -> Iterator[str]:
|
|
115 |
response = chat_engine.stream_chat(query_str)
|
116 |
#response = chat_engine.chat(query_str)
|
117 |
for token in response.response_gen:
|
118 |
-
if not token.startswith("system:") and not token.startswith("user:"):
|
119 |
|
120 |
-
outputs.append(
|
121 |
print(f"Generated token: {token}")
|
122 |
yield "".join(outputs)
|
123 |
|
|
|
115 |
response = chat_engine.stream_chat(query_str)
|
116 |
#response = chat_engine.chat(query_str)
|
117 |
for token in response.response_gen:
|
118 |
+
#if not token.startswith("system:") and not token.startswith("user:"):
|
119 |
|
120 |
+
outputs.append(token)
|
121 |
print(f"Generated token: {token}")
|
122 |
yield "".join(outputs)
|
123 |
|