Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions contrib/scripts/select-top-models.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,15 +241,13 @@ def select_top_models(
models = api.list_models(
filter=model_filter,
sort=sort_by,
direction=-1,
limit=fetch_limit,
)
else:
# Older API without ModelFilter
# Newer API without ModelFilter (removed in huggingface_hub 0.24)
models = api.list_models(
filter=task,
sort=sort_by,
direction=-1,
limit=fetch_limit,
)

Expand Down
Loading