camenduru commited on
Commit
d8bb1f5
1 Parent(s): c3961be

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -16,4 +16,8 @@ os.system(f"wget -q https://huggingface.co/camenduru/i15/resolve/main/sd-v1-5-in
16
  os.system(f"wget -q https://huggingface.co/camenduru/sd14/resolve/main/sd-v1-4.ckpt -O /home/user/app/stable-diffusion-webui/models/Stable-diffusion/sd-v1-4.ckpt")
17
  os.system(f"wget -q https://huggingface.co/hakurei/waifu-diffusion-v1-3/resolve/main/wd-v1-3-float32.ckpt -O /home/user/app/stable-diffusion-webui/models/Stable-diffusion/wd-v1-3-float32.ckpt")
18
  os.chdir("/home/user/app/stable-diffusion-webui")
 
 
 
 
19
  os.system(f"python launch.py --force-enable-xformers")
 
16
  os.system(f"wget -q https://huggingface.co/camenduru/sd14/resolve/main/sd-v1-4.ckpt -O /home/user/app/stable-diffusion-webui/models/Stable-diffusion/sd-v1-4.ckpt")
17
  os.system(f"wget -q https://huggingface.co/hakurei/waifu-diffusion-v1-3/resolve/main/wd-v1-3-float32.ckpt -O /home/user/app/stable-diffusion-webui/models/Stable-diffusion/wd-v1-3-float32.ckpt")
18
  os.chdir("/home/user/app/stable-diffusion-webui")
19
+ os.system(f"sed -i -e '/(pnginfo_interface, \"PNG Info\", \"pnginfo\"),/d' /home/user/app/stable-diffusion-webui/modules/ui.py")
20
+ os.system(f"sed -i -e '/(modelmerger_interface, \"Checkpoint Merger\", \"modelmerger\"),/d' /home/user/app/stable-diffusion-webui/modules/ui.py")
21
+ os.system(f"sed -i -e '/(train_interface, \"Train\", \"ti\"),/d' /home/user/app/stable-diffusion-webui/modules/ui.py")
22
+ os.system(f"sed -i -e 's/\"filter_nsfw\": OptionInfo(False, \"Filter NSFW content\"),/\"filter_nsfw\": OptionInfo(True, \"Filter NSFW content\"),/g' /home/user/app/stable-diffusion-webui/modules/shared.py")
23
  os.system(f"python launch.py --force-enable-xformers")