Update handler.py
Browse files- 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
|
| 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}]
|