mirror of
https://github.com/ParisNeo/lollms.git
synced 2025-02-21 17:56:38 +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.utilities import git_pull, show_yes_no_dialog
|
||||
import subprocess
|
||||
import shutil
|
||||
|
||||
|
||||
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?"):
|
||||
return
|
||||
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/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."):
|
||||
|
Loading…
x
Reference in New Issue
Block a user