mkrzyzan commited on
Commit
e3a1cf3
Β·
1 Parent(s): 2950d3f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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