Spaces:
Runtime error
Runtime error
Add types
Browse filesSigned-off-by: smajumdar <[email protected]>
app.py
CHANGED
@@ -77,7 +77,12 @@ hf_filter.task = "automatic-speech-recognition"
|
|
77 |
|
78 |
hf_infos = nemo_asr.models.ASRModel.search_huggingface_models(model_filter=hf_filter)
|
79 |
for info in hf_infos:
|
80 |
-
|
|
|
|
|
|
|
|
|
|
|
81 |
SUPPORTED_LANGUAGES.add(lang_id)
|
82 |
SUPPORTED_MODEL_NAMES.add(info.modelId)
|
83 |
|
|
|
77 |
|
78 |
hf_infos = nemo_asr.models.ASRModel.search_huggingface_models(model_filter=hf_filter)
|
79 |
for info in hf_infos:
|
80 |
+
print("Model ID:", info.modelId)
|
81 |
+
try:
|
82 |
+
lang_id = info.modelId.split("_")[1] # obtains lang id as str
|
83 |
+
except Exception:
|
84 |
+
continue
|
85 |
+
|
86 |
SUPPORTED_LANGUAGES.add(lang_id)
|
87 |
SUPPORTED_MODEL_NAMES.add(info.modelId)
|
88 |
|