- handler.py +1 -1
handler.py
CHANGED
@@ -49,7 +49,7 @@ class EndpointHandler():
|
|
49 |
just_get_sd_mask_function = just_get_sd_mask
|
50 |
|
51 |
def __call__(self, data):
|
52 |
-
mask_pil =
|
53 |
|
54 |
if mask_pil.mode != 'RGB':
|
55 |
mask_pil = mask_pil.convert('RGB')
|
|
|
49 |
just_get_sd_mask_function = just_get_sd_mask
|
50 |
|
51 |
def __call__(self, data):
|
52 |
+
mask_pil = just_get_sd_mask_function(Image.open("assets/demo1.jpg"), "bear", 10)
|
53 |
|
54 |
if mask_pil.mode != 'RGB':
|
55 |
mask_pil = mask_pil.convert('RGB')
|