Use id rather than modelId from Hugging Face (#1831)

# Description

For context, modelId is getting deprecated
https://github.com/huggingface/huggingface_hub/issues/2408
Closes: # (issue)

# Checklist:

- [x] I have changed the base branch to `dev`
- [x] I have performed a self-review of my own code
- [x] I have commented my code in hard-to-understand areas
- [x] I have made corresponding changes to the documentation
This commit is contained in:
Thomas Mello 2024-08-14 18:01:55 +03:00 committed by GitHub
commit c46b7224cd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -32,7 +32,7 @@ models = []
print("Downloading the sd concept library from the huggingface site.")
for model in models_list:
model_content = {}
model_id = model.modelId
model_id = model.id
url = f"https://huggingface.co/{model_id}"
try:
if not os.path.exists(os.path.join("../models/custom", model_id)):