Commit
·
8a9f697
1
Parent(s):
25c7820
Update app.py
Browse files
app.py
CHANGED
|
@@ -194,12 +194,3 @@ DownLoad(r"https://github.com/TencentARC/GFPGAN/releases/download/v1.3.0/GFPGANv
|
|
| 194 |
#strt Stable Diffusion Webui
|
| 195 |
print("Done\nStarting Webui...")
|
| 196 |
os.chdir(content / r"stable-diffusion-webui")
|
| 197 |
-
gc.collect()
|
| 198 |
-
while True:
|
| 199 |
-
ret=subprocess.run([executable ,content / r"stable-diffusion-webui" / r"launch.py",r"--no-half",r"--no-half-vae",r"--enable-insecure-extension-access",r"--medvram",r"--skip-torch-cuda-test",r"--gradio",r"--multiple",r"--enable-console-prompts",r"--ui-settings-file="+str(pathlib.Path(__file__).parent /r"config.json")])
|
| 200 |
-
if(ret.returncode == 0 ):
|
| 201 |
-
del ret
|
| 202 |
-
gc.collect()
|
| 203 |
-
else :
|
| 204 |
-
del ret
|
| 205 |
-
del os ,content ,pyexecutable ,subprocess
|
|
|
|
| 194 |
#strt Stable Diffusion Webui
|
| 195 |
print("Done\nStarting Webui...")
|
| 196 |
os.chdir(content / r"stable-diffusion-webui")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|