From 53a2c12faf91f3174fce8673c94578cb0966d245 Mon Sep 17 00:00:00 2001 From: Saifeddine ALOUI Date: Tue, 19 Mar 2024 21:36:29 +0100 Subject: [PATCH] fix --- lollms/services/sd/lollms_sd.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/lollms/services/sd/lollms_sd.py b/lollms/services/sd/lollms_sd.py index acb8aed..e3365a8 100644 --- a/lollms/services/sd/lollms_sd.py +++ b/lollms/services/sd/lollms_sd.py @@ -64,14 +64,13 @@ def install_sd(lollms_app:LollmsApplication): if sd_folder.exists(): if show_yes_no_dialog("warning!","I have detected that there is a previous installation of stable diffusion.\nShould I remove it and continue installing?"): shutil.rmtree(sd_folder) - elif show_yes_no_dialog("warning!","Continue installation?"): - ASCIIColors.cyan("Installing autosd conda environment with python 3.10") - create_conda_env("autosd","3.10") - ASCIIColors.cyan("Done") - return - else: + elif not show_yes_no_dialog("warning!","Continue installation?"): return + ASCIIColors.cyan("Installing autosd conda environment with python 3.10") + create_conda_env("autosd","3.10") + ASCIIColors.cyan("Done") + subprocess.run(["git", "clone", "https://github.com/ParisNeo/stable-diffusion-webui.git", str(sd_folder)]) subprocess.run(["git", "clone", "https://github.com/ParisNeo/SD-CN-Animation.git", str(sd_folder/"extensions/SD-CN-Animation")]) if show_yes_no_dialog("warning!","Do you want to install a model from civitai?\nIsuggest dreamshaper xl."):