ameerazam08
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -2,6 +2,17 @@ import gradio as gr
|
|
2 |
from PIL import Image
|
3 |
from main import Upscale_CaseCade
|
4 |
import spaces
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
|
6 |
upscale_class=Upscale_CaseCade()
|
7 |
# scale_fator=7
|
|
|
2 |
from PIL import Image
|
3 |
from main import Upscale_CaseCade
|
4 |
import spaces
|
5 |
+
import os
|
6 |
+
|
7 |
+
os.chdir('./models')
|
8 |
+
os.system("wget https://huggingface.co/stabilityai/StableWurst/resolve/main/effnet_encoder.safetensors -P . -q --show-progress")
|
9 |
+
os.system("wget https://huggingface.co/stabilityai/stable-cascade/resolve/main/controlnet/inpainting.safetensors -P models -q --show-progress")
|
10 |
+
os.system("wget https://huggingface.co/stabilityai/StableWurst/resolve/main/previewer.safetensors -P . -q --show-progress")
|
11 |
+
os.system("wget https://huggingface.co/stabilityai/StableWurst/resolve/main/stage_a.safetensors -P . -q --show-progress")
|
12 |
+
os.system("wget https://huggingface.co/stabilityai/StableWurst/resolve/main/stage_b_bf16.safetensors -P . -q --show-progress")
|
13 |
+
os.system("wget https://huggingface.co/stabilityai/StableWurst/resolve/main/stage_c_bf16.safetensors -P . -q --show-progress")
|
14 |
+
os.system("wget https://huggingface.co/stabilityai/stable-cascade/resolve/main/controlnet/super_resolution.safetensors -P models -q --show-progress")
|
15 |
+
os.chdir('..')
|
16 |
|
17 |
upscale_class=Upscale_CaseCade()
|
18 |
# scale_fator=7
|