Spaces:
Running
Running
Upload huggingface_model_descriptions.py
Browse files
huggingface_model_descriptions.py
CHANGED
@@ -66,7 +66,7 @@ def get_all_models_with_downloads(min_downloads=10000):
|
|
66 |
api = HfApi()
|
67 |
print("HfApi initialized. Calling list_models...")
|
68 |
# Fetch the iterator
|
69 |
-
models_iterator = api.list_models(sort="downloads", direction=-1, fetch_config=False, cardData=
|
70 |
print("list_models call returned. Converting iterator to list...")
|
71 |
# Convert the iterator to a list TO ALLOW CACHING
|
72 |
models_list = list(models_iterator)
|
|
|
66 |
api = HfApi()
|
67 |
print("HfApi initialized. Calling list_models...")
|
68 |
# Fetch the iterator
|
69 |
+
models_iterator = api.list_models(sort="downloads", direction=-1, fetch_config=False, cardData=False)
|
70 |
print("list_models call returned. Converting iterator to list...")
|
71 |
# Convert the iterator to a list TO ALLOW CACHING
|
72 |
models_list = list(models_iterator)
|