Spaces:
Running
on
Zero
Running
on
Zero
update
Browse files- app.py +1 -1
- upscale_image.py +1 -1
app.py
CHANGED
@@ -13,7 +13,7 @@ def gradio_upscale(image):
|
|
13 |
if __name__ == "__main__":
|
14 |
# Gradio UIの設定
|
15 |
iface = gr.Interface(
|
16 |
-
fn=
|
17 |
inputs="image",
|
18 |
outputs="image",
|
19 |
title="Image Reverser",
|
|
|
13 |
if __name__ == "__main__":
|
14 |
# Gradio UIの設定
|
15 |
iface = gr.Interface(
|
16 |
+
fn=gradio_upscale,
|
17 |
inputs="image",
|
18 |
outputs="image",
|
19 |
title="Image Reverser",
|
upscale_image.py
CHANGED
@@ -4,7 +4,7 @@ from diffusers import StableDiffusionUpscalePipeline
|
|
4 |
from PIL import Image
|
5 |
|
6 |
device = "cuda"
|
7 |
-
|
8 |
def execute(input_image):
|
9 |
model_id = "stabilityai/stable-diffusion-x4-upscaler"
|
10 |
# GPUを使用する場合
|
|
|
4 |
from PIL import Image
|
5 |
|
6 |
device = "cuda"
|
7 |
+
seed = 100
|
8 |
def execute(input_image):
|
9 |
model_id = "stabilityai/stable-diffusion-x4-upscaler"
|
10 |
# GPUを使用する場合
|