patrickvonplaten
commited on
Commit
·
b3f3336
1
Parent(s):
e58dd86
up
Browse files- spaces_per_model_repo.py +9 -0
spaces_per_model_repo.py
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
#!/usr/bin/env python3
|
2 |
+
from huggingface_hub import HfApi
|
3 |
+
import sys
|
4 |
+
|
5 |
+
api = HfApi()
|
6 |
+
model_id = str(sys.argv[1])
|
7 |
+
|
8 |
+
likes = sum(space.likes for space in HfApi().list_spaces(models=model_id))
|
9 |
+
print(f"{model_id}\t{likes}")
|