r0seyyyd33p commited on
Commit
fcda342
1 Parent(s): 7b5af9b

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -102,10 +102,11 @@ DownLoad(r"https://github.com/xinntao/facexlib/releases/download/v0.2.2/parsing_
102
  DownLoad(r"https://github.com/TencentARC/GFPGAN/releases/download/v1.3.0/GFPGANv1.4.pth",user_home / r"stable-diffusion-webui"/r"models"/r"GFPGAN",r"GFPGANv1.4.pth")
103
  #strt Stable Diffusion Webui
104
  print("Done\nStarting Webui...")
 
105
  os.chdir(user_home / r"stable-diffusion-webui")
106
  gc.collect()
107
  while True:
108
- 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"), r"--REQS_FILE="+str(pathlib.Path(__file__).parent /r"requirements2.txt")])
109
  if(ret.returncode == 0 ):
110
  del ret
111
  gc.collect()
 
102
  DownLoad(r"https://github.com/TencentARC/GFPGAN/releases/download/v1.3.0/GFPGANv1.4.pth",user_home / r"stable-diffusion-webui"/r"models"/r"GFPGAN",r"GFPGANv1.4.pth")
103
  #strt Stable Diffusion Webui
104
  print("Done\nStarting Webui...")
105
+ subprocess.run([r"pip install httpcore==0.24.1", shell=True)
106
  os.chdir(user_home / r"stable-diffusion-webui")
107
  gc.collect()
108
  while True:
109
+ 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")])
110
  if(ret.returncode == 0 ):
111
  del ret
112
  gc.collect()