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: