anishde commited on
Commit
f70263f
1 Parent(s): ee5976d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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).split()
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=str(chain.run(input_documents=doc, question=query)).split('/n')
63
  res=result[-1]
64
  # print(chain.run(input_documents=doc, question=query))
65
  print(res)