Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -33,12 +33,13 @@ def infer(image):
|
|
33 |
out_img = Image.merge("YCbCr", (out_img_y, out_img_cb, out_img_cr)).convert(
|
34 |
"RGB"
|
35 |
)
|
36 |
-
return out_img
|
37 |
|
38 |
iface = gr.Interface(
|
39 |
fn=infer,
|
40 |
title = "Super-resolution",
|
41 |
inputs=gr.inputs.Image(label="Input Image"),
|
42 |
-
outputs=[gr.outputs.Image(label="
|
|
|
43 |
],
|
44 |
).launch()
|
|
|
33 |
out_img = Image.merge("YCbCr", (out_img_y, out_img_cb, out_img_cr)).convert(
|
34 |
"RGB"
|
35 |
)
|
36 |
+
return img,out_img
|
37 |
|
38 |
iface = gr.Interface(
|
39 |
fn=infer,
|
40 |
title = "Super-resolution",
|
41 |
inputs=gr.inputs.Image(label="Input Image"),
|
42 |
+
outputs=[gr.outputs.Image(label="Resized 300x300 image"),
|
43 |
+
gr.outputs.Image(label="Super-resolution 300x300 image")
|
44 |
],
|
45 |
).launch()
|