ryan0303 commited on
Commit
14a1de6
1 Parent(s): c881f49

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -259,7 +259,7 @@ def conversation(qa_chain, message, history):
259
  #print("formatted_chat_history",formatted_chat_history)
260
 
261
  # Generate response using QA chain
262
- response = qa_chain({"question": message, "chat_history": formatted_chat_history)
263
  response_answer = response["answer"]
264
  if response_answer.find("Helpful Answer:") != -1:
265
  response_answer = response_answer.split("Helpful Answer:")[-1]
 
259
  #print("formatted_chat_history",formatted_chat_history)
260
 
261
  # Generate response using QA chain
262
+ response = qa_chain({"question": message, "chat_history": formatted_chat_history})
263
  response_answer = response["answer"]
264
  if response_answer.find("Helpful Answer:") != -1:
265
  response_answer = response_answer.split("Helpful Answer:")[-1]