Wauplin HF staff commited on
Commit
f82cd46
1 Parent(s): 0f67c2f

Fix app.py (list models returns a generator, not a list anymore)

Browse files

cc

@freddyaboulton



@jeffboudier

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -73,7 +73,7 @@ def retrieve_model_stats():
73
  "download_per_model": 0,
74
  "modality": modality,
75
  }
76
- models = hf_api.list_models(filter=model_name)
77
 
78
  model_stats["num_models"] = len(models)
79
  model_stats["num_downloads"] = sum(
 
73
  "download_per_model": 0,
74
  "modality": modality,
75
  }
76
+ models = list(hf_api.list_models(filter=model_name))
77
 
78
  model_stats["num_models"] = len(models)
79
  model_stats["num_downloads"] = sum(