Download domain/transcriber.py from ZeloTech/zelotech: direct link, hf CLI and curl.
- Browser
- Download file 286 Bytes
-
https://huggingface.co/spaces/ZeloTech/zelotech/resolve/main/domain/transcriber.py
- Command line
-
hf download hf://spaces/ZeloTech/zelotech/domain/transcriber.py
-
curl -L -o transcriber.py https://huggingface.co/spaces/ZeloTech/zelotech/resolve/main/domain/transcriber.py
286 Bytes
| from typing import Protocol | |
| class Transcriber(Protocol): | |
| """Contrato de transcricao. Quem chama nao sabe se por tras esta | |
| faster-whisper local, um endpoint gerenciado ou uma API de nuvem.""" | |
| def transcribe(self, audio_path: str, language: str = "pt") -> str: ... | |