Download domain/extractor.py from ZeloTech/zelotech: direct link, hf CLI and curl.
- Browser
- Download file 240 Bytes
-
https://huggingface.co/spaces/ZeloTech/zelotech/resolve/main/domain/extractor.py
- Command line
-
hf download hf://spaces/ZeloTech/zelotech/domain/extractor.py
-
curl -L -o extractor.py https://huggingface.co/spaces/ZeloTech/zelotech/resolve/main/domain/extractor.py
240 Bytes
| from typing import Literal, Protocol | |
| Kind = Literal["pdf", "image"] | |
| class TextExtractor(Protocol): | |
| """Contrato de extracao de texto de documentos (PDF ou imagem).""" | |
| def extract(self, path: str, kind: Kind) -> str: ... | |