udman99 commited on
Commit
9fdfc4a
·
verified ·
1 Parent(s): 88a852d

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -13,7 +13,7 @@ class EndpointHandler():
13
 
14
  # Perform image segmentation
15
  pillow_mask = self.pipe(image_path, return_mask=True) # outputs a pillow mask
16
- pillow_image = self.pipe(image_path, return_mask=True) # outputs the segmented image
17
 
18
  # Return the result as a list of dictionaries
19
  return [{"image": pillow_image, "mask": pillow_mask}]
 
13
 
14
  # Perform image segmentation
15
  pillow_mask = self.pipe(image_path, return_mask=True) # outputs a pillow mask
16
+ pillow_image = self.pipe(image_path) # outputs the segmented image
17
 
18
  # Return the result as a list of dictionaries
19
  return [{"image": pillow_image, "mask": pillow_mask}]