Skip to content

Support Hugging Face blob file URLs#9167

Open
C2015 wants to merge 1 commit into
invoke-ai:mainfrom
C2015:support-hf-blob-url-6227
Open

Support Hugging Face blob file URLs#9167
C2015 wants to merge 1 commit into
invoke-ai:mainfrom
C2015:support-hf-blob-url-6227

Conversation

@C2015
Copy link
Copy Markdown

@C2015 C2015 commented May 14, 2026

Summary

  • Convert Hugging Face file page URLs that use /blob/ into direct /resolve/ download URLs before queuing a generic URL download.
  • Add a focused regression test for a Hugging Face blob URL in model installation.

Fixes #6227

Testing

  • python3 -m py_compile invokeai/app/services/model_install/model_install_default.py tests/app/services/model_install/test_model_install.py
  • git diff --check
  • python3 -m pytest tests/app/services/model_install/test_model_install.py -k huggingface_blob_url_uses_resolve_download_url could not run locally because pytest is not installed in this environment.

@github-actions github-actions Bot added python PRs that change python files services PRs that change app services python-tests PRs that change python tests labels May 14, 2026
@C2015 C2015 marked this pull request as ready for review May 15, 2026 01:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

python PRs that change python files python-tests PRs that change python tests services PRs that change app services

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[enhancement]: Support HF URLs that point to the webpage for a file and not the file itself

1 participant