Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -59,7 +59,7 @@ def generate_response(history, query):
|
|
59 |
else:
|
60 |
# Relevant information found, proceed with the chain
|
61 |
# result=chain.run(input_documents=doc, question=query)
|
62 |
-
result=chain.run(input_documents=doc, question=query).
|
63 |
res=result[-1]
|
64 |
# print(chain.run(input_documents=doc, question=query))
|
65 |
print(res)
|
|
|
59 |
else:
|
60 |
# Relevant information found, proceed with the chain
|
61 |
# result=chain.run(input_documents=doc, question=query)
|
62 |
+
result=chain.run(input_documents=doc, question=query).split()
|
63 |
res=result[-1]
|
64 |
# print(chain.run(input_documents=doc, question=query))
|
65 |
print(res)
|