Hantr commited on
Commit
ef65312
·
1 Parent(s): 6985243
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -105,11 +105,11 @@ def sepia(input_img):
105
  return fig
106
 
107
 
108
- demo = gr.Interface(fn=sepia,
109
- inputs=gr.Image(shape=(1024, 1024)),
110
- outputs=['plot'],
111
  examples=["city-1.jpg", "city-2.jpg", "city-3.jpg", "city-4.jpg", "city-5.jpg"],
112
  allow_flagging='never')
113
 
114
 
115
- demo.launch()
 
105
  return fig
106
 
107
 
108
+ iface = gr.Interface(fn=sepia,
109
+ inputs=gr.inputs.Image(type="pil", label="Upload an image"),
110
+ outputs=gr.outputs.Image(type='pil', label="Segmentation result"),
111
  examples=["city-1.jpg", "city-2.jpg", "city-3.jpg", "city-4.jpg", "city-5.jpg"],
112
  allow_flagging='never')
113
 
114
 
115
+ iface.launch()