Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -35,7 +35,7 @@ def DownLoad(URI:str,DownloadPath:pathlib.Path,DownLoadFileName:str ) -> int:
|
|
| 35 |
del i
|
| 36 |
raise Exception(str.format("download \'{0}\' failed",URI))
|
| 37 |
|
| 38 |
-
user_home =pathlib.Path.home().resolve()
|
| 39 |
os.chdir(str(user_home))
|
| 40 |
#clone stable-diffusion-webui repo
|
| 41 |
print("cloning stable-diffusion-webui repo")
|
|
@@ -304,9 +304,7 @@ 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 |
-
password=str(os.environ['password'])
|
| 309 |
-
print(username,password)
|
| 310 |
while True:
|
| 311 |
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")])
|
| 312 |
if(ret.returncode == 0 ):
|
|
@@ -314,5 +312,4 @@ while True:
|
|
| 314 |
gc.collect()
|
| 315 |
else :
|
| 316 |
del ret
|
| 317 |
-
input("error")
|
| 318 |
del os ,user_home ,pyexecutable ,subprocess
|
|
|
|
| 35 |
del i
|
| 36 |
raise Exception(str.format("download \'{0}\' failed",URI))
|
| 37 |
|
| 38 |
+
user_home =pathlib.Path.home().resolve().joinpath("data")
|
| 39 |
os.chdir(str(user_home))
|
| 40 |
#clone stable-diffusion-webui repo
|
| 41 |
print("cloning stable-diffusion-webui repo")
|
|
|
|
| 304 |
# at least give feedback on this anyway, because it's not
|
| 305 |
# really tested that much at the moment.
|
| 306 |
|
| 307 |
+
|
|
|
|
|
|
|
| 308 |
while True:
|
| 309 |
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")])
|
| 310 |
if(ret.returncode == 0 ):
|
|
|
|
| 312 |
gc.collect()
|
| 313 |
else :
|
| 314 |
del ret
|
|
|
|
| 315 |
del os ,user_home ,pyexecutable ,subprocess
|