Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -15,8 +15,8 @@ def predict(mask_img):
|
|
15 |
prompt = "a green frog, highly detailed, natural lighting"
|
16 |
image = pipeline(prompt=prompt,
|
17 |
#num_inference_steps=35,
|
18 |
-
image=mask_img["image"],
|
19 |
-
mask_image=mask_img["mask"]
|
20 |
#guidance_scale=9
|
21 |
).images[0]
|
22 |
|
|
|
15 |
prompt = "a green frog, highly detailed, natural lighting"
|
16 |
image = pipeline(prompt=prompt,
|
17 |
#num_inference_steps=35,
|
18 |
+
image=mask_img["image"].convert("RGB").resize((512, 512)),
|
19 |
+
mask_image=mask_img["mask"].convert("RGB").resize((512, 512))
|
20 |
#guidance_scale=9
|
21 |
).images[0]
|
22 |
|