UI: Warn user if they are trying to load a model from no path (#6006)

This commit is contained in:
Samuel Wein 2024-05-20 01:05:17 +02:00 committed by GitHub
parent 2de586f586
commit b63dc4e325
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)