Mr-Vicky-01 commited on
Commit
b3fb01d
1 Parent(s): b398150

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -58,7 +58,7 @@ def user_input(user_question):
58
  docs = new_db.similarity_search(user_question)
59
  chain = get_conversational_chain()
60
  response = chain({"context": docs, "question": user_question}, return_only_outputs=True)
61
- return response["output_text"]
62
 
63
  # def response_generator(response):
64
  # for word in response.split():
 
58
  docs = new_db.similarity_search(user_question)
59
  chain = get_conversational_chain()
60
  response = chain({"context": docs, "question": user_question}, return_only_outputs=True)
61
+ return response
62
 
63
  # def response_generator(response):
64
  # for word in response.split():