From c592a9b740552442d33dfa0a74817c50b2f35c91 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Wed, 12 Jul 2023 13:33:44 -0700 Subject: [PATCH] Fix #3117 --- server.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/server.py b/server.py index 2723b284..05455775 100644 --- a/server.py +++ b/server.py @@ -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: