mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-04-20 22:13:43 +00:00
Account for non-tree URLs
This commit is contained in:
parent
d6d9720eb5
commit
57643eb64d
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue