anton-l HF staff commited on
Commit
9ad32f4
1 Parent(s): 522168c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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"]