Skip to content

Commit

Permalink
Remove unnecessary condition
Browse files Browse the repository at this point in the history
  • Loading branch information
carson-katri committed Jun 3, 2024
1 parent ef1da57 commit 7b6c130
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generator_process/actions/huggingface_hub.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def hf_snapshot_download(

if "model_index.json" in files:
# check if the variant files are available before trying to download them
_, variant_files = {set(files), set()} if variant is None else variant_compatible_siblings(files, variant=variant)
_, variant_files = variant_compatible_siblings(files, variant=variant)
StableDiffusionPipeline.download(
model,
use_auth_token=token,
Expand Down

0 comments on commit 7b6c130

Please sign in to comment.