MCPcopy
hub / github.com/k2-fsa/OmniVoice / _resolve_model_path

Function _resolve_model_path

omnivoice/models/omnivoice.py:191–196  ·  view source on GitHub ↗
(name_or_path: str)

Source from the content-addressed store, hash-verified

189
190
191def _resolve_model_path(name_or_path: str) -> str:
192 if os.path.isdir(name_or_path):
193 return name_or_path
194 from huggingface_hub import snapshot_download
195
196 return snapshot_download(name_or_path)
197
198
199class OmniVoice(PreTrainedModel):

Callers 3

from_pretrainedMethod · 0.85
load_asr_modelMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected