Download api/deps.py from ZeloTech/zelotech: direct link, hf CLI and curl.
- Browser
- Download file 319 Bytes
-
https://huggingface.co/spaces/ZeloTech/zelotech/resolve/main/api/deps.py
- Command line
-
hf download hf://spaces/ZeloTech/zelotech/api/deps.py
-
curl -L -o deps.py https://huggingface.co/spaces/ZeloTech/zelotech/resolve/main/api/deps.py
319 Bytes
| from fastapi import Request | |
| from domain.extractor import TextExtractor | |
| from domain.transcriber import Transcriber | |
| def get_transcriber(request: Request) -> Transcriber: | |
| return request.app.state.transcriber | |
| def get_extractor(request: Request) -> TextExtractor: | |
| return request.app.state.extractor | |