File size: 268 Bytes
699a234
 
 
 
 
 
866074c
699a234
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env python3
from huggingface_hub import HfApi

api = HfApi()
out = api.list_models(filter="diffusers")
model_ids = [x.modelId for x in out]
print(len(model_ids))

with open("./model_ids.txt", "w") as f:
    for _id in model_ids:
        f.write(_id + "\n")