Update app.py
Browse files
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({"
|
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()
|