@@ -158,21 +158,21 @@ def on_ui_tabs():
158158 get_mask_btn = gr .Button ("Get mask" , elem_id = "get_mask_btn" )
159159 with gr .Row ():
160160 with gr .Column ():
161- mask_out_image = gr .Image (label = "Get mask image" , elem_id = "mask_out_image" , type = "numpy" , interactive = False ). style ( height = 480 )
161+ mask_out_image = gr .Image (label = "Get mask image" , elem_id = "mask_out_image" , type = "numpy" , interactive = False , height = 480 )
162162 with gr .Row ():
163163 with gr .Column ():
164164 mask_send_to_inpaint_btn = gr .Button ("Send to img2img inpaint" , elem_id = "mask_send_to_inpaint_btn" )
165165
166166 with gr .Column ():
167167 with gr .Row ():
168168 sam_image = gr .Image (label = "Fill the background image" , elem_id = "sam_image" , type = "numpy" , tool = "sketch" , brush_radius = 8 ,
169- interactive = True ). style ( height = 480 )
169+ interactive = True , height = 480 )
170170 with gr .Row ():
171171 with gr .Column ():
172172 select_btn = gr .Button ("Create mask" , elem_id = "select_btn" )
173173 with gr .Row ():
174174 sel_mask = gr .Image (label = "Create mask image" , elem_id = "sel_mask" , type = "numpy" , tool = "sketch" , brush_radius = 12 ,
175- interactive = True ). style ( height = 480 )
175+ interactive = True , height = 480 )
176176
177177 input_image .upload (input_image_upload , inputs = [input_image , sam_image , sel_mask ], outputs = [sam_image , sel_mask , sam_btn ])
178178 sam_btn .click (run_sam , inputs = [input_image , sam_image ], outputs = [sam_image , status_text ]).then (
@@ -204,4 +204,4 @@ def on_ui_settings():
204204 127 , "Fill value used when Padding is set to constant" , gr .Slider , {"minimum" :0 , "maximum" :255 , "step" :1 }, section = section ))
205205
206206script_callbacks .on_ui_settings (on_ui_settings )
207- script_callbacks .on_ui_tabs (on_ui_tabs )
207+ script_callbacks .on_ui_tabs (on_ui_tabs )
0 commit comments