mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2026-03-12 00:23:50 +01:00
Handle URLs like https://huggingface.co/Qwen/Qwen-Image
This commit is contained in:
parent
7dfb6e9c57
commit
5fb1380ac1
|
|
@ -697,6 +697,12 @@ def download_image_model_wrapper(model_path):
|
|||
return
|
||||
|
||||
try:
|
||||
model_path = model_path.strip()
|
||||
if model_path.startswith('https://huggingface.co/'):
|
||||
model_path = model_path[len('https://huggingface.co/'):]
|
||||
elif model_path.startswith('huggingface.co/'):
|
||||
model_path = model_path[len('huggingface.co/'):]
|
||||
|
||||
if ':' in model_path:
|
||||
model_id, branch = model_path.rsplit(':', 1)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in a new issue