Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -33,7 +33,7 @@ def infer(image):
|
|
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,
|
@@ -42,4 +42,4 @@ iface = gr.Interface(
|
|
42 |
outputs=[gr.outputs.Image(label="Resized 300x300 image"),
|
43 |
gr.outputs.Image(label="Super-resolution 300x300 image")
|
44 |
],
|
45 |
-
).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,
|
|
|
42 |
outputs=[gr.outputs.Image(label="Resized 300x300 image"),
|
43 |
gr.outputs.Image(label="Super-resolution 300x300 image")
|
44 |
],
|
45 |
+
).launch(share = True)
|