Spaces:
Runtime error
Runtime error
Fix contextnet type
Browse filesSigned-off-by: smajumdar <[email protected]>
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 = {
|
|
|
|
|
|
|
|
|
|
|
|
|
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:
|