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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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)