Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ file_text = pathlib.Path('intents_v2.txt').read_text()
|
|
25 |
prompt = hub.pull("hwchase17/react")
|
26 |
|
27 |
def faq(query: str) -> str:
|
28 |
-
reponse = conversation_chain.invoke({"input": query})
|
29 |
return reponse
|
30 |
|
31 |
qa_faq = StructuredTool.from_function(
|
|
|
25 |
prompt = hub.pull("hwchase17/react")
|
26 |
|
27 |
def faq(query: str) -> str:
|
28 |
+
reponse = conversation_chain.invoke({"input": query, 'document': file_text})
|
29 |
return reponse
|
30 |
|
31 |
qa_faq = StructuredTool.from_function(
|