Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
|
@@ -55,7 +55,7 @@ class EndpointHandler():
|
|
| 55 |
# run inference pipeline
|
| 56 |
out = self.pipe(prompt=prompt, image=image, mask_image=mask_image)
|
| 57 |
|
| 58 |
-
|
| 59 |
|
| 60 |
self.pipe2.enable_xformers_memory_efficient_attention()
|
| 61 |
|
|
|
|
| 55 |
# run inference pipeline
|
| 56 |
out = self.pipe(prompt=prompt, image=image, mask_image=mask_image)
|
| 57 |
|
| 58 |
+
image = out.images[0].resize((1024, 1024))
|
| 59 |
|
| 60 |
self.pipe2.enable_xformers_memory_efficient_attention()
|
| 61 |
|