Spaces:
Sleeping
Sleeping
support mask
Browse files
app.py
CHANGED
@@ -79,10 +79,11 @@ with demo_blocks as demo:
|
|
79 |
inpaint_mode = gr.Dropdown(label="modes", choices=modes, value="Telea")
|
80 |
with gr.Column():
|
81 |
image_out = gr.Image(sources=[],label="Output", elem_id="output-img")
|
|
|
82 |
|
83 |
|
84 |
|
85 |
-
btn.click(fn=process_images, inputs=[image, image_mask,inpaint_radius,blur_radius,edge_expand,inpaint_mode], outputs =image_out, api_name='infer')
|
86 |
gr.Examples(
|
87 |
examples=[["examples/street.jpg", "examples/street_mask.jpg"]]
|
88 |
,
|
|
|
79 |
inpaint_mode = gr.Dropdown(label="modes", choices=modes, value="Telea")
|
80 |
with gr.Column():
|
81 |
image_out = gr.Image(sources=[],label="Output", elem_id="output-img")
|
82 |
+
mask_out = gr.Image(height=800,sources=[],label="Mask", elem_id="mask-img",format="jpeg")
|
83 |
|
84 |
|
85 |
|
86 |
+
btn.click(fn=process_images, inputs=[image, image_mask,inpaint_radius,blur_radius,edge_expand,inpaint_mode], outputs =[image_out,mask_out], api_name='infer')
|
87 |
gr.Examples(
|
88 |
examples=[["examples/street.jpg", "examples/street_mask.jpg"]]
|
89 |
,
|