sergeipetrov
commited on
Commit
•
796fee2
1
Parent(s):
cb25f79
Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
@@ -26,7 +26,7 @@ class EndpointHandler():
|
|
26 |
mask = Image.open(BytesIO(base64.b64decode(inputs['mask'])))
|
27 |
prompt = inputs['prompt']
|
28 |
# blur mask for smooth transition
|
29 |
-
mask = pipeline.mask_processor.blur(mask, blur_factor=20)
|
30 |
|
31 |
# fix the seed
|
32 |
generator = torch.Generator(device="cuda").manual_seed(0)
|
|
|
26 |
mask = Image.open(BytesIO(base64.b64decode(inputs['mask'])))
|
27 |
prompt = inputs['prompt']
|
28 |
# blur mask for smooth transition
|
29 |
+
mask = self.pipeline.mask_processor.blur(mask, blur_factor=20)
|
30 |
|
31 |
# fix the seed
|
32 |
generator = torch.Generator(device="cuda").manual_seed(0)
|