Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -59,7 +59,8 @@ 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 |
-
|
|
|
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 |
+
string=str(chain.run(input_documents=doc, question=query))
|
63 |
+
result=string.split('\n')
|
64 |
res=result[-1]
|
65 |
# print(chain.run(input_documents=doc, question=query))
|
66 |
print(res)
|