Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -71,7 +71,8 @@ async def chat(query,history,sources,reports):
|
|
71 |
|
72 |
# get prompt
|
73 |
|
74 |
-
prompt = ChatPromptTemplate.from_template(answer_prompt_template)
|
|
|
75 |
|
76 |
# get llm_qa
|
77 |
# llm_qa = HuggingFaceEndpoint(
|
|
|
71 |
|
72 |
# get prompt
|
73 |
|
74 |
+
#prompt = ChatPromptTemplate.from_template(answer_prompt_template)
|
75 |
+
prompt = ChatPromptTemplate.from_messages(answer_prompt_template)
|
76 |
|
77 |
# get llm_qa
|
78 |
# llm_qa = HuggingFaceEndpoint(
|