Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ def upscale_image(input_image, radio_input):
|
|
10 |
# ์
์ค์ผ์ผ๋ ์ด๋ฏธ์ง๋ฅผ PNG ํ์ผ๋ก ์ ์ฅ
|
11 |
output_file_path = "/mnt/data/upscaled_image.png"
|
12 |
cv2.imwrite(output_file_path, output_image)
|
13 |
-
return
|
14 |
|
15 |
# ์ธํฐํ์ด์ค ์ค๋ช
|
16 |
DESCRIPTION = """
|
@@ -24,7 +24,7 @@ radio_input = gr.Radio(label="์
์ค์ผ์ผ ๋ ๋ฒจ ์ ํ (Select Upscaling level
|
|
24 |
demo = gr.Interface(
|
25 |
fn=upscale_image,
|
26 |
inputs=[gr.Image(label="์
๋ ฅ ์ด๋ฏธ์ง (Input Image)", type="numpy"), radio_input],
|
27 |
-
outputs=
|
28 |
title="Image Upscaler",
|
29 |
description=DESCRIPTION
|
30 |
)
|
|
|
10 |
# ์
์ค์ผ์ผ๋ ์ด๋ฏธ์ง๋ฅผ PNG ํ์ผ๋ก ์ ์ฅ
|
11 |
output_file_path = "/mnt/data/upscaled_image.png"
|
12 |
cv2.imwrite(output_file_path, output_image)
|
13 |
+
return output_file_path
|
14 |
|
15 |
# ์ธํฐํ์ด์ค ์ค๋ช
|
16 |
DESCRIPTION = """
|
|
|
24 |
demo = gr.Interface(
|
25 |
fn=upscale_image,
|
26 |
inputs=[gr.Image(label="์
๋ ฅ ์ด๋ฏธ์ง (Input Image)", type="numpy"), radio_input],
|
27 |
+
outputs=gr.File(label="PNG ํ์ผ ๋ค์ด๋ก๋ (Download PNG File)"),
|
28 |
title="Image Upscaler",
|
29 |
description=DESCRIPTION
|
30 |
)
|