Update app.py
Browse files
app.py
CHANGED
@@ -96,30 +96,30 @@ with gr.Blocks(title="Remove background") as app:
|
|
96 |
# mask_img = gr.Image(type="pil", label="Image Mask", visible=False)
|
97 |
# gr.ClearButton(components=[input_img, output_img, mask_img])
|
98 |
|
99 |
-
chk_include_matting.change(change_include_matting, inputs=[chk_include_matting],
|
100 |
-
|
101 |
-
|
102 |
|
103 |
-
slr_fg_threshold.change(change_foreground_threshold, inputs=[slr_fg_threshold, matting_state],
|
104 |
-
|
105 |
|
106 |
-
slr_bg_threshold.change(change_background_threshold, inputs=[slr_bg_threshold, matting_state],
|
107 |
-
|
108 |
|
109 |
-
|
110 |
-
|
111 |
|
112 |
-
chk_show_mask.change(change_show_mask, inputs=[chk_show_mask], outputs=[mask_img])
|
113 |
|
114 |
-
|
115 |
-
|
116 |
|
117 |
-
|
118 |
|
119 |
-
|
120 |
|
121 |
-
|
122 |
-
|
123 |
|
124 |
with gr.Row():
|
125 |
gr.HTML(footer)
|
|
|
96 |
# mask_img = gr.Image(type="pil", label="Image Mask", visible=False)
|
97 |
# gr.ClearButton(components=[input_img, output_img, mask_img])
|
98 |
|
99 |
+
#chk_include_matting.change(change_include_matting, inputs=[chk_include_matting],
|
100 |
+
# outputs=[slider_matting, matting_state,
|
101 |
+
# slr_fg_threshold, slr_bg_threshold, slr_erode_size])
|
102 |
|
103 |
+
#slr_fg_threshold.change(change_foreground_threshold, inputs=[slr_fg_threshold, matting_state],
|
104 |
+
# outputs=[matting_state])
|
105 |
|
106 |
+
#slr_bg_threshold.change(change_background_threshold, inputs=[slr_bg_threshold, matting_state],
|
107 |
+
# outputs=[matting_state])
|
108 |
|
109 |
+
# slr_erode_size.change(change_erode_size, inputs=[slr_erode_size, matting_state],
|
110 |
+
# outputs=[matting_state])
|
111 |
|
112 |
+
#chk_show_mask.change(change_show_mask, inputs=[chk_show_mask], outputs=[mask_img])
|
113 |
|
114 |
+
# chk_change_color.change(change_background_mode, inputs=[chk_change_color],
|
115 |
+
# outputs=[pkr_color, chk_dominant])
|
116 |
|
117 |
+
# pkr_color.change(change_picker_color, inputs=[pkr_color, chk_dominant], outputs=[color_state])
|
118 |
|
119 |
+
# chk_dominant.change(set_dominant_color, inputs=[chk_dominant], outputs=[color_state, pkr_color])
|
120 |
|
121 |
+
# run_btn.click(predict, inputs=[input_img, drp_models, chk_smoot_mask, matting_state, color_state],
|
122 |
+
# outputs=[output_img, mask_img])
|
123 |
|
124 |
with gr.Row():
|
125 |
gr.HTML(footer)
|