File size: 217 Bytes
b3f3336
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/env python3
from huggingface_hub import HfApi
import sys

api = HfApi()
model_id = str(sys.argv[1])

likes = sum(space.likes for space in HfApi().list_spaces(models=model_id))
print(f"{model_id}\t{likes}")