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