Necht commited on
Commit
0258e61
·
verified ·
1 Parent(s): 967928f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -1,4 +1,5 @@
1
  import gradio as gr
 
2
 
3
  def greet(name):
4
  return "Hello " + name + "!!"
@@ -17,10 +18,12 @@ iface.launch()
17
  !wget -O /content/stable-diffusion-webui/models/VAE/vae-ft-mse-840000-ema-pruned.safetensors https://huggingface.co/stabilityai/sd-vae-ft-mse-original/resolve/main/vae-ft-mse-840000-ema-pruned.safetensors
18
  !wget -O /content/stable-diffusion-webui/models/VAE/kl-f8-anime2.ckpt https://huggingface.co/hakurei/waifu-diffusion-v1-4/resolve/main/vae/kl-f8-anime2.ckpt
19
 
 
20
  # --- UPSCALERS --- #
21
- !wget -O /content/stable-diffusion-webui/models/ESRGAN/4x-UltraSharp.pth https://huggingface.co/Zabin/Resizers/resolve/main/4x-UltraSharp.pth
22
- !wget -O /content/stable-diffusion-webui/models/ESRGAN/4x_foolhardy_Remacri.pth https://huggingface.co/Zabin/Resizers/resolve/main/4x_foolhardy_Remacri.pth
23
- !wget -O /content/stable-diffusion-webui/models/ESRGAN/4x_NMKD-Superscale-SP_178000_G.pth https://huggingface.co/gemasai/4x_NMKD-Superscale-SP_178000_G/resolve/main/4x_NMKD-Superscale-SP_178000_G.pth
 
24
 
25
  # --- EMBEDDINGS --- #
26
  !wget -O /content/stable-diffusion-webui/embeddings/Negative/EasyNegative.pt https://huggingface.co/embed/negative/resolve/main/EasyNegative.pt
 
1
  import gradio as gr
2
+ import subprocess
3
 
4
  def greet(name):
5
  return "Hello " + name + "!!"
 
18
  !wget -O /content/stable-diffusion-webui/models/VAE/vae-ft-mse-840000-ema-pruned.safetensors https://huggingface.co/stabilityai/sd-vae-ft-mse-original/resolve/main/vae-ft-mse-840000-ema-pruned.safetensors
19
  !wget -O /content/stable-diffusion-webui/models/VAE/kl-f8-anime2.ckpt https://huggingface.co/hakurei/waifu-diffusion-v1-4/resolve/main/vae/kl-f8-anime2.ckpt
20
 
21
+
22
  # --- UPSCALERS --- #
23
+ subprocess.run(["wget", "-O", "/content/stable-diffusion-webui/models/ESRGAN/4x-UltraSharp.pth", "https://huggingface.co/Zabin/Resizers/resolve/main/4x-UltraSharp.pth"])
24
+ subprocess.run(["wget", "-O", "/content/stable-diffusion-webui/models/ESRGAN/4x_foolhardy_Remacri.pth", "https://huggingface.co/Zabin/Resizers/resolve/main/4x_foolhardy_Remacri.pth"])
25
+ subprocess.run(["wget", "-O", "/content/stable-diffusion-webui/models/ESRGAN/4x_NMKD-Superscale-SP_178000_G.pth", "https://huggingface.co/gemasai/4x_NMKD-Superscale-SP_178000_G/resolve/main/4x_NMKD-Superscale-SP_178000_G.pth"])
26
+
27
 
28
  # --- EMBEDDINGS --- #
29
  !wget -O /content/stable-diffusion-webui/embeddings/Negative/EasyNegative.pt https://huggingface.co/embed/negative/resolve/main/EasyNegative.pt