vishwask commited on
Commit
5bfed36
·
verified ·
1 Parent(s): 1f5a7d5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -189,7 +189,7 @@ def conversation(qa_chain, message, history):
189
  #print("formatted_chat_history",formatted_chat_history)
190
 
191
  # Generate response using QA chain
192
- response = qa_chain({"question": message, "chat_history": formatted_chat_history})
193
  response_answer = response["answer"]
194
  if response_answer.find("Helpful Answer:") != -1:
195
  response_answer = response_answer.split("Helpful Answer:")[-1]
 
189
  #print("formatted_chat_history",formatted_chat_history)
190
 
191
  # Generate response using QA chain
192
+ response = qa_chain({"question": message, "history": formatted_chat_history})
193
  response_answer = response["answer"]
194
  if response_answer.find("Helpful Answer:") != -1:
195
  response_answer = response_answer.split("Helpful Answer:")[-1]