Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -11,16 +11,16 @@ def upscale_image(input_image, radio_input):
|
|
11 |
|
12 |
# ์ธํฐํ์ด์ค ์ค๋ช
|
13 |
DESCRIPTION = """
|
14 |
-
์ด๋ฏธ์ง์ ํฌ๊ธฐ์ ํ์ง์ ํฅ์์์ผ ๋ณด์ธ์!
|
15 |
"""
|
16 |
|
17 |
# ์
์ค์ผ์ผ ๋ ๋ฒจ ์ ํ ๋ผ๋์ค ๋ฒํผ
|
18 |
-
radio_input = gr.Radio(label="์
์ค์ผ์ผ ๋ ๋ฒจ ์ ํ", choices=[2, 4, 6, 8, 10], value=2)
|
19 |
|
20 |
# Gradio ์ธํฐํ์ด์ค ์ ์
|
21 |
demo = gr.Interface(
|
22 |
fn=upscale_image,
|
23 |
-
inputs=[gr.Image(label="์
๋ ฅ ์ด๋ฏธ์ง(Input Image)", type="numpy"), radio_input],
|
24 |
outputs=gr.Image(label="์
์ค์ผ์ผ๋ ์ด๋ฏธ์ง(Upscaled Image)"),
|
25 |
title="Image Upscaler",
|
26 |
description=DESCRIPTION
|
|
|
11 |
|
12 |
# ์ธํฐํ์ด์ค ์ค๋ช
|
13 |
DESCRIPTION = """
|
14 |
+
์ด๋ฏธ์ง์ ํฌ๊ธฐ์ ํ์ง์ ํฅ์์์ผ ๋ณด์ธ์! (you can increase the size and quality of your images)
|
15 |
"""
|
16 |
|
17 |
# ์
์ค์ผ์ผ ๋ ๋ฒจ ์ ํ ๋ผ๋์ค ๋ฒํผ
|
18 |
+
radio_input = gr.Radio(label="์
์ค์ผ์ผ ๋ ๋ฒจ ์ ํ (Select Upscaling level)", choices=[2, 4, 6, 8, 10], value=2)
|
19 |
|
20 |
# Gradio ์ธํฐํ์ด์ค ์ ์
|
21 |
demo = gr.Interface(
|
22 |
fn=upscale_image,
|
23 |
+
inputs=[gr.Image(label="์
๋ ฅ ์ด๋ฏธ์ง (Input Image)", type="numpy"), radio_input],
|
24 |
outputs=gr.Image(label="์
์ค์ผ์ผ๋ ์ด๋ฏธ์ง(Upscaled Image)"),
|
25 |
title="Image Upscaler",
|
26 |
description=DESCRIPTION
|