Spaces:
Sleeping
Sleeping
Update appStore/rag.py
Browse files- appStore/rag.py +1 -1
appStore/rag.py
CHANGED
@@ -223,7 +223,7 @@ def run_query(context, label):
|
|
223 |
chunk_message = chunk['choices'][0]['delta']
|
224 |
# test to make sure there is text in the object (some don't have)
|
225 |
if 'content' in chunk_message:
|
226 |
-
report.append(chunk_message
|
227 |
# add the latest text and merge it with all previous
|
228 |
result = "".join(report).strip()
|
229 |
# res_box.success(result) # output to response text box
|
|
|
223 |
chunk_message = chunk['choices'][0]['delta']
|
224 |
# test to make sure there is text in the object (some don't have)
|
225 |
if 'content' in chunk_message:
|
226 |
+
report.append(chunk_message['content']) # extract the message
|
227 |
# add the latest text and merge it with all previous
|
228 |
result = "".join(report).strip()
|
229 |
# res_box.success(result) # output to response text box
|