Account for non-tree URLs

This commit is contained in:
Th-Underscore 2026-04-18 20:03:32 -04:00
parent d6d9720eb5
commit 57643eb64d
No known key found for this signature in database
GPG key ID: 21EEB0243310C90C

View file

@ -252,7 +252,7 @@ def download_model_wrapper(repo_id, specific_file, progress=gr.Progress(), retur
return
# Handle branch delimited by ":"
elif ":" in repo_id:
elif not repo_id.startswith("http") and ":" in repo_id:
try:
repo_id, branch = repo_id.split(":")
except Exception as e: