anishde commited on
Commit
535bb75
1 Parent(s): f70263f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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
- 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)
 
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)