Fix app.py (list models returns a generator, not a list anymore) (#3)
Browse files- Fix app.py (list models returns a generator, not a list anymore) (f82cd467d3ec8f25bb972753d8ba61cc83401a67)
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(
|