Skip to content

Commit

Permalink
Use id rather than modelId from Hugging Face (#1831)
Browse files Browse the repository at this point in the history
# Description

For context, modelId is getting deprecated
huggingface/huggingface_hub#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
  • Loading branch information
codedealer authored Aug 14, 2024
2 parents 8d2db7f + 1a74316 commit c46b722
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/sd_concepts_library_downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def update(self, op_code, cur_count, max_count=None, message=""):
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)):
Expand Down

0 comments on commit c46b722

Please sign in to comment.