Update app.py
Browse filesprueba ocultar campos
app.py
CHANGED
@@ -65,11 +65,7 @@ def change_background_mode(chk_state):
|
|
65 |
|
66 |
|
67 |
footer = r"""
|
68 |
-
|
69 |
-
<b>
|
70 |
-
Demo based on <a href='https://github.com/danielgatis/rembg'>Rembg</a>
|
71 |
-
</b>
|
72 |
-
</center>
|
73 |
"""
|
74 |
|
75 |
with gr.Blocks(title="Remove background") as app:
|
@@ -78,22 +74,22 @@ with gr.Blocks(title="Remove background") as app:
|
|
78 |
|
79 |
gr.HTML("<center><h1>Background Remover</h1></center>")
|
80 |
with gr.Row(equal_height=False):
|
81 |
-
with gr.Column():
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
with gr.Box():
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
chk_dominant = gr.Checkbox(label="Use dominant color", value=False, visible=False)
|
97 |
run_btn = gr.Button(value="Remove background", variant="primary")
|
98 |
with gr.Column():
|
99 |
output_img = gr.Image(type="pil", label="Image Result")
|
|
|
65 |
|
66 |
|
67 |
footer = r"""
|
68 |
+
|
|
|
|
|
|
|
|
|
69 |
"""
|
70 |
|
71 |
with gr.Blocks(title="Remove background") as app:
|
|
|
74 |
|
75 |
gr.HTML("<center><h1>Background Remover</h1></center>")
|
76 |
with gr.Row(equal_height=False):
|
77 |
+
#with gr.Column():
|
78 |
+
# input_img = gr.Image(type="pil", label="Input image")
|
79 |
+
# drp_models = gr.Dropdown(choices=model_choices, label="Model Segment", value="U2NET")
|
80 |
+
# with gr.Row():
|
81 |
+
# chk_include_matting = gr.Checkbox(label="Matting", value=False)
|
82 |
+
# chk_smoot_mask = gr.Checkbox(label="Smoot Mask", value=False)
|
83 |
+
# chk_show_mask = gr.Checkbox(label="Show Mask", value=False)
|
84 |
+
# with gr.Box(visible=False) as slider_matting:
|
85 |
+
# slr_fg_threshold = gr.Slider(0, 300, value=270, step=1, label="Alpha matting foreground threshold")
|
86 |
+
# slr_bg_threshold = gr.Slider(0, 50, value=20, step=1, label="Alpha matting background threshold")
|
87 |
+
# slr_erode_size = gr.Slider(0, 20, value=11, step=1, label="Alpha matting erode size")
|
88 |
+
#with gr.Box():
|
89 |
+
# with gr.Row():
|
90 |
+
# chk_change_color = gr.Checkbox(label="Change background color", value=False)
|
91 |
+
# pkr_color = gr.ColorPicker(label="Pick a new color", visible=False)
|
92 |
+
#chk_dominant = gr.Checkbox(label="Use dominant color", value=False, visible=False)
|
93 |
run_btn = gr.Button(value="Remove background", variant="primary")
|
94 |
with gr.Column():
|
95 |
output_img = gr.Image(type="pil", label="Image Result")
|