dhanushreddy29 commited on
Commit
d0e2888
·
1 Parent(s): 1270bff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -25,7 +25,7 @@ def predict_segmentation(img):
25
  resized_img = cv2.resize(gray_img, im_size)
26
  # Predict the segmentation mask
27
  pred = learn.predict(resized_img)
28
- output_image = pred[0]
29
  return output_image
30
 
31
  input_image = gr.inputs.Image()
 
25
  resized_img = cv2.resize(gray_img, im_size)
26
  # Predict the segmentation mask
27
  pred = learn.predict(resized_img)
28
+ output_image = PILImage.create(pred[0])
29
  return output_image
30
 
31
  input_image = gr.inputs.Image()