Eyalgut commited on
Commit
e692d95
1 Parent(s): d1bb2c2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -88,7 +88,7 @@ def predict(dict, prompt="", negative_prompt="", guidance_scale=5, steps=30, str
88
  mask[mask>0]=255
89
  mask = Image.fromarray(mask)
90
 
91
- output = pipe(prompt = prompt, negative_prompt=negative_prompt, image=init_image, mask_image=mask, guidance_scale=guidance_scale, num_inference_steps=int(steps), strength=strength)
92
 
93
  return output.images[0] #, gr.update(visible=True)
94
 
 
88
  mask[mask>0]=255
89
  mask = Image.fromarray(mask)
90
 
91
+ output = pipe(prompt = prompt,width=w,height=h, negative_prompt=negative_prompt, image=init_image, mask_image=mask, guidance_scale=guidance_scale, num_inference_steps=int(steps), strength=strength)
92
 
93
  return output.images[0] #, gr.update(visible=True)
94