ky2k commited on
Commit
f495277
1 Parent(s): 7701f8b

try different app launch file

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -23,4 +23,12 @@ img = gr.inputs.Image()
23
  title = "Noise2Same: Optimizing A Self-Supervised Bound for Image Denoising"
24
  description = "Interactive demo of Noise2Same, an image denoising method developed by Yaochen Xie"
25
 
26
- gr.Interface(predict, "image", "image", examples=[["lion.png"], ["arch.png"], ["parrot.png"]], title=title, description=description).launch()
 
 
 
 
 
 
 
 
 
23
  title = "Noise2Same: Optimizing A Self-Supervised Bound for Image Denoising"
24
  description = "Interactive demo of Noise2Same, an image denoising method developed by Yaochen Xie"
25
 
26
+ denoise = gr.Interface(fn=predict,
27
+ inputs=gr.Image(placeholder="Drag image here.", label='Input Image'),
28
+ outputs=gr.Image(placeholder="Output image will appear here.", label='Input Image'),
29
+ examples=[["lion.png"], ["arch.png"], ["parrot.png"]],
30
+ title=title, description=description)
31
+
32
+ #launching the app
33
+ if __name__ == "__main__":
34
+ denoise.launch(debug=True)