tferhan commited on
Commit
db9c22d
·
verified ·
1 Parent(s): ec9920d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(