From 1c937dad72dfcd176bdc1f25938585e91a48d3d3 Mon Sep 17 00:00:00 2001 From: mefich Date: Mon, 18 Nov 2024 20:01:40 +0500 Subject: [PATCH] Filter whitespaces in downloader fields in model tab (#6518) --- modules/ui_model_menu.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/ui_model_menu.py b/modules/ui_model_menu.py index f87b680a..34d58177 100644 --- a/modules/ui_model_menu.py +++ b/modules/ui_model_menu.py @@ -260,6 +260,8 @@ def download_model_wrapper(repo_id, specific_file, progress=gr.Progress(), retur yield ("Please enter a model path") return + repo_id = repo_id.strip() + specific_file = specific_file.strip() downloader = importlib.import_module("download-model").ModelDownloader() progress(0.0)