Update app.py
Browse files
app.py
CHANGED
|
@@ -159,11 +159,11 @@ with gr.Blocks() as demo:
|
|
| 159 |
clear_points_btn = gr.Button("Clear Points")
|
| 160 |
checkpoint = gr.Dropdown(label="Checkpoint", choices=["tiny", "small", "base-plus", "large"], value="base-plus")
|
| 161 |
with gr.Row():
|
| 162 |
-
expand_contract_px = gr.Slider(minimum=0, maximum=50,
|
| 163 |
-
expand = gr.Radio(["Expand", "Contract"],
|
| 164 |
with gr.Row():
|
| 165 |
-
feathering_enabled = gr.Checkbox(
|
| 166 |
-
feather_size = gr.Slider(minimum=1, maximum=50,
|
| 167 |
submit_btn = gr.Button("Submit")
|
| 168 |
with gr.Column():
|
| 169 |
output_result = gr.Image()
|
|
|
|
| 159 |
clear_points_btn = gr.Button("Clear Points")
|
| 160 |
checkpoint = gr.Dropdown(label="Checkpoint", choices=["tiny", "small", "base-plus", "large"], value="base-plus")
|
| 161 |
with gr.Row():
|
| 162 |
+
expand_contract_px = gr.Slider(minimum=0, maximum=50, value=0, label="Expand/Contract (pixels)")
|
| 163 |
+
expand = gr.Radio(["Expand", "Contract"], value="Expand", label="Action")
|
| 164 |
with gr.Row():
|
| 165 |
+
feathering_enabled = gr.Checkbox(value=False, label="Enable Feathering")
|
| 166 |
+
feather_size = gr.Slider(minimum=1, maximum=50, value=10, label="Feathering Size", visible=False)
|
| 167 |
submit_btn = gr.Button("Submit")
|
| 168 |
with gr.Column():
|
| 169 |
output_result = gr.Image()
|