Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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 |
|