From 57643eb64d961c8ce4d2620ae73eec64cec6e372 Mon Sep 17 00:00:00 2001 From: Th-Underscore Date: Sat, 18 Apr 2026 20:03:32 -0400 Subject: [PATCH] Account for non-tree URLs --- modules/ui_model_menu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ui_model_menu.py b/modules/ui_model_menu.py index 37fde106..29367b91 100644 --- a/modules/ui_model_menu.py +++ b/modules/ui_model_menu.py @@ -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: