699a234
1
2
3
4
5
6
7
8
9
10
11
#!/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] with open("./model_ids.txt", "w") as f: for _id in model_ids: f.write(_id + "\n")