#!/usr/bin/env python3from huggingface_hub import HfApi
api = HfApi()
out = api.list_models(filter="diffusers")
model_ids = [x.modelId for x in out]
print(len(model_ids))
withopen("./model_ids.txt", "w") as f:
for _idin model_ids:
f.write(_id + "\n")