Fix app.py (list models returns a generator, not a list anymore)
#3
by
Wauplin
HF staff
- opened
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(
|