From b63dc4e3252de4a85c1c1ac5cbfb24229b938cab Mon Sep 17 00:00:00 2001 From: Samuel Wein Date: Mon, 20 May 2024 01:05:17 +0200 Subject: [PATCH] UI: Warn user if they are trying to load a model from no path (#6006) --- modules/ui_model_menu.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/ui_model_menu.py b/modules/ui_model_menu.py index fe0d3ee1..9a936b0a 100644 --- a/modules/ui_model_menu.py +++ b/modules/ui_model_menu.py @@ -273,6 +273,10 @@ def load_lora_wrapper(selected_loras): def download_model_wrapper(repo_id, specific_file, progress=gr.Progress(), return_links=False, check=False): try: + if repo_id == "": + yield ("Please enter a model path") + return + downloader = importlib.import_module("download-model").ModelDownloader() progress(0.0)