Spaces:
Running
Running
Download plugins/_document_query/helpers/parsers/image.py from Leon4gr45/openoperator: direct link, hf CLI and curl.
- Browser
- Download file 397 Bytes
-
https://huggingface.co/spaces/Leon4gr45/openoperator/resolve/main/plugins/_document_query/helpers/parsers/image.py
- Command line
-
hf download hf://spaces/Leon4gr45/openoperator/plugins/_document_query/helpers/parsers/image.py
-
curl -L -o image.py https://huggingface.co/spaces/Leon4gr45/openoperator/resolve/main/plugins/_document_query/helpers/parsers/image.py
397 Bytes
| """Image parser — delegates to UnstructuredLoader.""" | |
| from plugins._document_query.helpers.fetch import FetchedDocument | |
| from .base import BaseParser | |
| from .unstructured import UnstructuredParser | |
| class ImageParser(BaseParser): | |
| mimetypes = ["image/"] | |
| def _parse_sync(self, document: FetchedDocument, config: dict) -> str: | |
| return UnstructuredParser()._parse_sync(document, config) | |