(
self, cache_dir: Optional[str] = None, model: Optional[BaseModelBackend] = None
)
| 45 | """ |
| 46 | |
| 47 | def __init__( |
| 48 | self, cache_dir: Optional[str] = None, model: Optional[BaseModelBackend] = None |
| 49 | ): |
| 50 | self.image_tool = ImageAnalysisToolkit(model=model) |
| 51 | # self.audio_tool = AudioAnalysisToolkit() |
| 52 | self.excel_tool = ExcelToolkit() |
| 53 | |
| 54 | self.cache_dir = "tmp/" |
| 55 | if cache_dir: |
| 56 | self.cache_dir = cache_dir |
| 57 | |
| 58 | self.uio = UnstructuredIO() |
| 59 | |
| 60 | @retry_on_error() |
| 61 | def extract_document_content(self, document_path: str) -> Tuple[bool, str]: |
nothing calls this directly
no outgoing calls
no test coverage detected