Commit
·
38a9b36
1
Parent(s):
777f68b
small fixes
Browse files
model.py
CHANGED
|
@@ -1388,8 +1388,9 @@ def _get_sherpa_onnx_omnilingual_asr_models(
|
|
| 1388 |
filename="model.int8.onnx" if is_int8 else "model.onnx",
|
| 1389 |
subfolder=".",
|
| 1390 |
)
|
| 1391 |
-
if
|
| 1392 |
-
|
|
|
|
| 1393 |
):
|
| 1394 |
# download the weights. it is not used in the code explicitly.
|
| 1395 |
# it is needed at runtime.
|
|
@@ -1398,6 +1399,8 @@ def _get_sherpa_onnx_omnilingual_asr_models(
|
|
| 1398 |
filename="model.weights",
|
| 1399 |
subfolder=".",
|
| 1400 |
)
|
|
|
|
|
|
|
| 1401 |
|
| 1402 |
tokens = _get_token_filename(repo_id=repo_id, subfolder=".")
|
| 1403 |
|
|
|
|
| 1388 |
filename="model.int8.onnx" if is_int8 else "model.onnx",
|
| 1389 |
subfolder=".",
|
| 1390 |
)
|
| 1391 |
+
if (
|
| 1392 |
+
repo_id
|
| 1393 |
+
== "csukuangfj/sherpa-onnx-omnilingual-asr-1600-languages-1B-ctc-2025-11-12"
|
| 1394 |
):
|
| 1395 |
# download the weights. it is not used in the code explicitly.
|
| 1396 |
# it is needed at runtime.
|
|
|
|
| 1399 |
filename="model.weights",
|
| 1400 |
subfolder=".",
|
| 1401 |
)
|
| 1402 |
+
print("model", model)
|
| 1403 |
+
print("model_weights", model_weights)
|
| 1404 |
|
| 1405 |
tokens = _get_token_filename(repo_id=repo_id, subfolder=".")
|
| 1406 |
|