Spaces:
Runtime error
Runtime error
snatcheggmoderntimes
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -307,10 +307,11 @@ del os ,user_home ,pyexecutable ,subprocess
|
|
307 |
username=os.environ['username']
|
308 |
password=os.environ['password']
|
309 |
while True:
|
310 |
-
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")])
|
311 |
if(ret.returncode == 0 ):
|
312 |
del ret
|
313 |
gc.collect()
|
314 |
else :
|
315 |
del ret
|
|
|
316 |
del os ,user_home ,pyexecutable ,subprocess
|
|
|
307 |
username=os.environ['username']
|
308 |
password=os.environ['password']
|
309 |
while True:
|
310 |
+
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",f"--gradio-auth {username}:{password}")])
|
311 |
if(ret.returncode == 0 ):
|
312 |
del ret
|
313 |
gc.collect()
|
314 |
else :
|
315 |
del ret
|
316 |
+
input("error")
|
317 |
del os ,user_home ,pyexecutable ,subprocess
|