Spaces:
Runtime error
Runtime error
text_spliter
Browse files
app.py
CHANGED
|
@@ -33,7 +33,7 @@ def _get_text_splitter():
|
|
| 33 |
class WebpageQATool(BaseTool):
|
| 34 |
name = "query_webpage"
|
| 35 |
description = "Browse a webpage and retrieve the information and answers relevant to the question. Please use bullet points to list the answers"
|
| 36 |
-
text_splitter: RecursiveCharacterTextSplitter =
|
| 37 |
qa_chain: BaseCombineDocumentsChain
|
| 38 |
|
| 39 |
def _run(self, url: str, question: str) -> str:
|
|
|
|
| 33 |
class WebpageQATool(BaseTool):
|
| 34 |
name = "query_webpage"
|
| 35 |
description = "Browse a webpage and retrieve the information and answers relevant to the question. Please use bullet points to list the answers"
|
| 36 |
+
text_splitter: RecursiveCharacterTextSplitter = _get_text_splitter()
|
| 37 |
qa_chain: BaseCombineDocumentsChain
|
| 38 |
|
| 39 |
def _run(self, url: str, question: str) -> str:
|