Update app.py
Browse files
app.py
CHANGED
@@ -34,12 +34,12 @@ def generate(image_editor, prompt, neg_prompt, strength, guidance):
|
|
34 |
|
35 |
final_image = pipeline(prompt=prompt,
|
36 |
image=image,
|
37 |
-
mask_image=mask,
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
|
44 |
return image_editor, image, mask, final_image
|
45 |
|
|
|
34 |
|
35 |
final_image = pipeline(prompt=prompt,
|
36 |
image=image,
|
37 |
+
mask_image=mask,
|
38 |
+
width=image.width,
|
39 |
+
height=image.height,
|
40 |
+
num_inference_steps=50,
|
41 |
+
strength=strength,
|
42 |
+
guidance_scale=guidance).images[0]
|
43 |
|
44 |
return image_editor, image, mask, final_image
|
45 |
|