Skip to content

Commit 51d91d1

Browse files
zkwentzburtenshaw
andauthored
List spaces sorted by popularity
Co-authored-by: burtenshaw <ben.burtenshaw@gmail.com>
1 parent 4cda662 commit 51d91d1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/manage_hf_collection.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,9 @@ def discover_openenv_spaces(api: HfApi) -> List[str]:
117117
# List all spaces with the openenv tag using search parameter
118118
spaces = list(list_spaces(
119119
search=TAG_FILTER,
120-
full=False
120+
full=False,
121+
sort="trending_score",
122+
direction=-1
121123
))
122124

123125
# Filter for Docker spaces with the openenv tag

0 commit comments

Comments
 (0)