batlahiya commited on
Commit
1dc6efd
·
verified ·
1 Parent(s): 4b765ad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -126,7 +126,7 @@ def chat(message):
126
  global qa_chain
127
  prompt_template = "You are an expert AI assistant. Please provide a detailed and helpful answer to the following question only from the given references. Question:\n"
128
  full_input = prompt_template + message
129
- response = qa_chain({"instruction": full_input})
130
  full_answer = response["answer"]
131
  answer_parts = full_answer.split("Helpful Answer:")
132
  qa_chain.memory.clear()
 
126
  global qa_chain
127
  prompt_template = "You are an expert AI assistant. Please provide a detailed and helpful answer to the following question only from the given references. Question:\n"
128
  full_input = prompt_template + message
129
+ response = qa_chain({"question": full_input})
130
  full_answer = response["answer"]
131
  answer_parts = full_answer.split("Helpful Answer:")
132
  qa_chain.memory.clear()