Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -272,7 +272,7 @@ gc.collect()
|
|
| 272 |
# enough as it gets, since it's more or less the same as the
|
| 273 |
# the other option, albeit a faster processor and more system RAM...
|
| 274 |
# yeah, that's supported, so it's fine I guess.
|
| 275 |
-
|
| 276 |
while True:
|
| 277 |
ret=subprocess.run([executable ,user_home / r"stable-diffusion-webui" / r"launch.py",r"--precision",r"full",r"--no-half",r"--no-half-vae",r"--enable-insecure-extension-access",r"--medvram",r"--skip-torch-cuda-test",r"--enable-console-prompts",r"--ui-settings-file="+str(pathlib.Path(__file__).parent /r"config.json")])
|
| 278 |
if(ret.returncode == 0 ):
|
|
@@ -281,7 +281,7 @@ while True:
|
|
| 281 |
else :
|
| 282 |
del ret
|
| 283 |
del os ,user_home ,pyexecutable ,subprocess
|
| 284 |
-
|
| 285 |
# ==GPU Option (UNTESTED)==
|
| 286 |
# if you are planning to run your duplicated space on a GPU, you must
|
| 287 |
# first comment out the default startup setting above this message
|
|
@@ -304,11 +304,11 @@ del os ,user_home ,pyexecutable ,subprocess
|
|
| 304 |
# at least give feedback on this anyway, because it's not
|
| 305 |
# really tested that much at the moment.
|
| 306 |
|
| 307 |
-
|
| 308 |
-
|
| 309 |
-
|
| 310 |
-
|
| 311 |
-
|
| 312 |
-
|
| 313 |
-
|
| 314 |
-
|
|
|
|
| 272 |
# enough as it gets, since it's more or less the same as the
|
| 273 |
# the other option, albeit a faster processor and more system RAM...
|
| 274 |
# yeah, that's supported, so it's fine I guess.
|
| 275 |
+
"""
|
| 276 |
while True:
|
| 277 |
ret=subprocess.run([executable ,user_home / r"stable-diffusion-webui" / r"launch.py",r"--precision",r"full",r"--no-half",r"--no-half-vae",r"--enable-insecure-extension-access",r"--medvram",r"--skip-torch-cuda-test",r"--enable-console-prompts",r"--ui-settings-file="+str(pathlib.Path(__file__).parent /r"config.json")])
|
| 278 |
if(ret.returncode == 0 ):
|
|
|
|
| 281 |
else :
|
| 282 |
del ret
|
| 283 |
del os ,user_home ,pyexecutable ,subprocess
|
| 284 |
+
"""
|
| 285 |
# ==GPU Option (UNTESTED)==
|
| 286 |
# if you are planning to run your duplicated space on a GPU, you must
|
| 287 |
# first comment out the default startup setting above this message
|
|
|
|
| 304 |
# at least give feedback on this anyway, because it's not
|
| 305 |
# really tested that much at the moment.
|
| 306 |
|
| 307 |
+
while True:
|
| 308 |
+
ret=subprocess.run([executable ,user_home / r"stable-diffusion-webui" / r"launch.py",r"--xformers",r"--enable-insecure-extension-access",r"--skip-torch-cuda-test",r"--enable-console-prompts",r"--ui-settings-file="+str(pathlib.Path(__file__).parent /r"config.json")])
|
| 309 |
+
if(ret.returncode == 0 ):
|
| 310 |
+
del ret
|
| 311 |
+
gc.collect()
|
| 312 |
+
else :
|
| 313 |
+
del ret
|
| 314 |
+
del os ,user_home ,pyexecutable ,subprocess
|