Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ def get_model_results_and_language_map(metadatas):
|
|
32 |
model_language_map = {}
|
33 |
# model_id: lang
|
34 |
for model_id, metadata in metadatas.items():
|
35 |
-
if "language" not in metadata:
|
36 |
NO_LANGUAGE_MODELS.append(model_id)
|
37 |
continue
|
38 |
lang = metadata["language"]
|
|
|
32 |
model_language_map = {}
|
33 |
# model_id: lang
|
34 |
for model_id, metadata in metadatas.items():
|
35 |
+
if metadata is None or "language" not in metadata:
|
36 |
NO_LANGUAGE_MODELS.append(model_id)
|
37 |
continue
|
38 |
lang = metadata["language"]
|