Spaces:
Build error
Build error
Update app.py
Browse files34 unmodified lines35363738394041262 unmodified lines3043053063073083093103113121 unmodified line31431531631731834 unmodified linesdel iraise Exception(str.format("download \'{0}\' failed",URI))user_home =pathlib.Path.home().resolve()+"/data"os.chdir(str(user_home))#clone stable-diffusion-webui repoprint("cloning stable-diffusion-webui repo")262 unmodified lines# at least give feedback on this anyway, because it's not# really tested that much at the moment.username=str(os.environ['username'])password=str(os.environ['password'])print(username,password)while True: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")])if(ret.returncode == 0 ):1 unmodified linegc.collect()else :del retinput("error")del os ,user_home ,pyexecutable ,subprocess34 unmodified lines35363738394041262 unmodified lines3043053063073083093101 unmodified line31231331431534 unmodified linesdel iraise Exception(str.format("download \'{0}\' failed",URI))user_home =pathlib.Path.home().resolve().joinpath("data")os.chdir(str(user_home))#clone stable-diffusion-webui repoprint("cloning stable-diffusion-webui repo")262 unmodified lines# at least give feedback on this anyway, because it's not# really tested that much at the moment.while True: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")])if(ret.returncode == 0 ):1 unmodified linegc.collect()else :del retdel os ,user_home ,pyexecutable ,subprocess
app.py+2-5