Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ from langchain import hub
|
|
22 |
prompt = hub.pull("hwchase17/react")
|
23 |
|
24 |
def faq(query: str) -> str:
|
25 |
-
reponse = conversation_chain({"question": query, "chat_history": []})
|
26 |
return reponse['answer']
|
27 |
|
28 |
qa_faq = StructuredTool.from_function(
|
|
|
22 |
prompt = hub.pull("hwchase17/react")
|
23 |
|
24 |
def faq(query: str) -> str:
|
25 |
+
reponse = conversation_chain.invoke({"question": query, "chat_history": []})
|
26 |
return reponse['answer']
|
27 |
|
28 |
qa_faq = StructuredTool.from_function(
|