Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
@@ -39,7 +39,7 @@ class EndpointHandler:
|
|
39 |
init_image.thumbnail((width, height))
|
40 |
|
41 |
generator = torch.Generator(device="cuda").manual_seed(seed)
|
42 |
-
images = self.pipe(prompts,
|
43 |
img_strs = []
|
44 |
|
45 |
for image in images:
|
|
|
39 |
init_image.thumbnail((width, height))
|
40 |
|
41 |
generator = torch.Generator(device="cuda").manual_seed(seed)
|
42 |
+
images = self.pipe(prompts, image=init_image,generator = generator, **data).images
|
43 |
img_strs = []
|
44 |
|
45 |
for image in images:
|