Spaces:
Running
Running
Fix setup
Browse files
tool.py
CHANGED
|
@@ -229,7 +229,7 @@ class VisualRAGTool(Tool):
|
|
| 229 |
|
| 230 |
def preprocess(self, files: List[str], contextualize: bool = True, api_key: str = None, window: int = 10) -> List[Page]:
|
| 231 |
"""Preprocesses the files and extracts metadata."""
|
| 232 |
-
pages = [page for file in files for page in self.
|
| 233 |
|
| 234 |
print(f"Example metadata:\n{pages[0].metadata.context}")
|
| 235 |
|
|
|
|
| 229 |
|
| 230 |
def preprocess(self, files: List[str], contextualize: bool = True, api_key: str = None, window: int = 10) -> List[Page]:
|
| 231 |
"""Preprocesses the files and extracts metadata."""
|
| 232 |
+
pages = [page for file in files for page in self._preprocess_file(file, contextualize=contextualize, api_key=api_key, window=window)]
|
| 233 |
|
| 234 |
print(f"Example metadata:\n{pages[0].metadata.context}")
|
| 235 |
|