ryan0303 commited on
Commit
72f57ac
1 Parent(s): 9aa7c1a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -253,7 +253,7 @@ def conversation(qa_chain, message, history):
253
  #print("formatted_chat_history",formatted_chat_history)
254
 
255
  # Generate response using QA chain
256
- response = qa_chain({"question": message, "chat_history": formatted_chat_history, "prompt": PROMPT})
257
  response_answer = response["answer"]
258
  if response_answer.find("Helpful Answer:") != -1:
259
  response_answer = response_answer.split("Helpful Answer:")[-1]
 
253
  #print("formatted_chat_history",formatted_chat_history)
254
 
255
  # Generate response using QA chain
256
+ response = qa_chain({"question": message, "chat_history": formatted_chat_history)
257
  response_answer = response["answer"]
258
  if response_answer.find("Helpful Answer:") != -1:
259
  response_answer = response_answer.split("Helpful Answer:")[-1]