mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-12-26 14:20:40 +01:00
Fix #3117
This commit is contained in:
parent
6447b2eea6
commit
c592a9b740
@ -146,11 +146,6 @@ def download_model_wrapper(repo_id, progress=gr.Progress()):
|
||||
|
||||
yield ("Getting the output folder")
|
||||
models_dir = Path(shared.args.model_dir)
|
||||
|
||||
# If the last part of the path is "models", remove it
|
||||
if models_dir.name.lower() == 'models':
|
||||
models_dir = models_dir.parent
|
||||
|
||||
output_folder = downloader.get_output_folder(model, branch, is_lora, base_folder=models_dir)
|
||||
|
||||
if check:
|
||||
|
Loading…
Reference in New Issue
Block a user