Spaces:
Sleeping
Sleeping
Download core/interfaces.py from ZTXRiley/ASR_AGENT_: direct link, hf CLI and curl.
- Browser
- Download file 373 Bytes
-
https://huggingface.co/spaces/ZTXRiley/ASR_AGENT_/resolve/main/core/interfaces.py
- Command line
-
hf download hf://spaces/ZTXRiley/ASR_AGENT_/core/interfaces.py
-
curl -L -o interfaces.py https://huggingface.co/spaces/ZTXRiley/ASR_AGENT_/resolve/main/core/interfaces.py
373 Bytes
| from __future__ import annotations | |
| from abc import ABC, abstractmethod | |
| from typing import Dict, Optional | |
| from .schemas import ASRConfig, ASROutput | |
| class ASRModel(ABC): | |
| def model_info(self) -> Dict: | |
| ... | |
| def transcribe(self, utt_id: str, audio_uri: str, config: Optional[ASRConfig] = None) -> ASROutput: | |
| ... | |