Dvjc1899 commited on
Commit
129df37
·
1 Parent(s): e07aae5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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="Super-resolution image"),
 
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()