shyamgupta196 commited on
Commit
2a0e034
1 Parent(s): f9a1687
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -37,8 +37,8 @@ def seg(image):
37
  img = np.array(image) * 0.5 + color_seg * 0.5
38
  img = img.astype(np.uint8)
39
  img = Image.fromarray(img)
40
- return plt.imshow(img)
41
 
42
 
43
- iface = gr.Interface(fn=seg, inputs=gr.inputs.Image(type='pil'), outputs=gr.outputs.Image('filepath',True))
44
  iface.launch()
 
37
  img = np.array(image) * 0.5 + color_seg * 0.5
38
  img = img.astype(np.uint8)
39
  img = Image.fromarray(img)
40
+ return img
41
 
42
 
43
+ iface = gr.Interface(fn=seg, inputs=gr.inputs.Image(type='pil'), outputs=gr.outputs.Image('pil'))
44
  iface.launch()