mirror of
https://github.com/ParisNeo/lollms.git
synced 2025-02-22 10:10:47 +00:00
sd can now delete itself
This commit is contained in:
parent
84946d28ff
commit
60033881d5
@ -30,6 +30,7 @@ from ascii_colors import ASCIIColors, trace_exception
|
|||||||
from lollms.paths import LollmsPaths
|
from lollms.paths import LollmsPaths
|
||||||
from lollms.utilities import git_pull, show_yes_no_dialog
|
from lollms.utilities import git_pull, show_yes_no_dialog
|
||||||
import subprocess
|
import subprocess
|
||||||
|
import shutil
|
||||||
|
|
||||||
|
|
||||||
def verify_sd(lollms_paths:LollmsPaths):
|
def verify_sd(lollms_paths:LollmsPaths):
|
||||||
@ -55,7 +56,7 @@ def install_sd(lollms_app:LollmsApplication):
|
|||||||
if not show_yes_no_dialog("warning!","I have detected that there is a previous installation of stable diffusion.\nShould I remove it and continue installing?"):
|
if not show_yes_no_dialog("warning!","I have detected that there is a previous installation of stable diffusion.\nShould I remove it and continue installing?"):
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
sd_folder.unlink(True)
|
shutil.rmtree(sd_folder)
|
||||||
subprocess.run(["git", "clone", "https://github.com/ParisNeo/stable-diffusion-webui.git", str(sd_folder)])
|
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")])
|
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."):
|
if show_yes_no_dialog("warning!","Do you want to install a model from civitai?\nIsuggest dreamshaper xl."):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user