smajumdar commited on
Commit
d98f9ce
1 Parent(s): b05b21c

Fix contextnet type

Browse files

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

Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -86,7 +86,13 @@ SUPPORTED_MODEL_NAMES = sorted(list(SUPPORTED_MODEL_NAMES))
86
  # DEBUG FILTER
87
  # SUPPORTED_MODEL_NAMES = list(filter(lambda x: "en" in x and "conformer_transducer_large" in x, SUPPORTED_MODEL_NAMES))
88
 
89
- model_dict = {model_name: gr.Interface.load(f'models/{model_name}') for model_name in SUPPORTED_MODEL_NAMES}
 
 
 
 
 
 
90
 
91
  SUPPORTED_LANG_MODEL_DICT = {}
92
  for lang in SUPPORTED_LANGUAGES:
 
86
  # DEBUG FILTER
87
  # SUPPORTED_MODEL_NAMES = list(filter(lambda x: "en" in x and "conformer_transducer_large" in x, SUPPORTED_MODEL_NAMES))
88
 
89
+ model_dict = {}
90
+ for model_name in SUPPORTED_MODEL_NAMES:
91
+ try:
92
+ iface = gr.Interface.load(f'models/{model_name}')
93
+ model_dict[model_name] = model_dict
94
+ except:
95
+ pass
96
 
97
  SUPPORTED_LANG_MODEL_DICT = {}
98
  for lang in SUPPORTED_LANGUAGES: