Update model.py
Browse files
model.py
CHANGED
|
@@ -363,7 +363,8 @@ def _get_offline_pre_trained_model(
|
|
| 363 |
|
| 364 |
|
| 365 |
@lru_cache(maxsize=10)
|
| 366 |
-
|
|
|
|
| 367 |
repo_id: str, decoding_method: str, num_active_paths: int
|
| 368 |
) -> sherpa_onnx.OfflineRecognizer:
|
| 369 |
# assert repo_id in (
|
|
@@ -695,7 +696,7 @@ def _get_whisper_model(
|
|
| 695 |
|
| 696 |
|
| 697 |
@lru_cache(maxsize=10)
|
| 698 |
-
def
|
| 699 |
repo_id: str,
|
| 700 |
decoding_method: str,
|
| 701 |
num_active_paths: int,
|
|
|
|
| 363 |
|
| 364 |
|
| 365 |
@lru_cache(maxsize=10)
|
| 366 |
+
_get_vietnamese_pretrained_model
|
| 367 |
+
def _get_vietnamese_pretrained_model(
|
| 368 |
repo_id: str, decoding_method: str, num_active_paths: int
|
| 369 |
) -> sherpa_onnx.OfflineRecognizer:
|
| 370 |
# assert repo_id in (
|
|
|
|
| 696 |
|
| 697 |
|
| 698 |
@lru_cache(maxsize=10)
|
| 699 |
+
def _get_gigaspeech_pre_trained_model(
|
| 700 |
repo_id: str,
|
| 701 |
decoding_method: str,
|
| 702 |
num_active_paths: int,
|