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
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
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)