smajumdar commited on
Commit
c57dc29
1 Parent(s): 51a5a7d

Signed-off-by: smajumdar <[email protected]>

Files changed (1) hide show
  1. app.py +6 -1
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
- lang_id = info.modelId.split("_")[1] # obtains lang id as str
 
 
 
 
 
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