csukuangfj
commited on
Commit
•
6fb68e3
1
Parent(s):
27c18ec
small fixes
Browse files
model.py
CHANGED
@@ -270,7 +270,7 @@ def _get_aishell2_pretrained_model(
|
|
270 |
|
271 |
|
272 |
@lru_cache(maxsize=10)
|
273 |
-
def
|
274 |
repo_id: str, decoding_method: str, num_active_paths: int
|
275 |
) -> sherpa_onnx.OfflineRecognizer:
|
276 |
assert repo_id in ("tiny.en", "base.en", "small.en", "medium.en"), repo_id
|
|
|
270 |
|
271 |
|
272 |
@lru_cache(maxsize=10)
|
273 |
+
def _get_whisper_model(
|
274 |
repo_id: str, decoding_method: str, num_active_paths: int
|
275 |
) -> sherpa_onnx.OfflineRecognizer:
|
276 |
assert repo_id in ("tiny.en", "base.en", "small.en", "medium.en"), repo_id
|