Filter whitespaces in downloader fields in model tab (#6518)

This commit is contained in:
mefich 2024-11-18 20:01:40 +05:00 committed by GitHub
parent f93196e306
commit 1c937dad72
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -260,6 +260,8 @@ def download_model_wrapper(repo_id, specific_file, progress=gr.Progress(), retur
yield ("Please enter a model path") yield ("Please enter a model path")
return return
repo_id = repo_id.strip()
specific_file = specific_file.strip()
downloader = importlib.import_module("download-model").ModelDownloader() downloader = importlib.import_module("download-model").ModelDownloader()
progress(0.0) progress(0.0)