Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -272,6 +272,9 @@ with image_blocks as demo:
|
|
272 |
text_prompt = gr.Textbox(placeholder = 'Your prompt (what you want in place of what is erased)', label="Object class", show_label=True)
|
273 |
x_units = gr.Slider(minimum=0, maximum=300, step=10, value=100, label="x_units")
|
274 |
y_units = gr.Slider(minimum=0, maximum=300, step=10, value=0, label="y_units")
|
|
|
|
|
|
|
275 |
with gr.Accordion("Advanced options", open=False) as advanced_options:
|
276 |
box_threshold = gr.Slider(
|
277 |
label="Box Threshold", minimum=0.0, maximum=1.0, value=0.23, step=0.01
|
@@ -283,9 +286,7 @@ with image_blocks as demo:
|
|
283 |
label="Text Threshold", minimum=0.0, maximum=1.0, value=0.25, step=0.01
|
284 |
)
|
285 |
inpaint_text_prompt = gr.Textbox(placeholder = 'Your prompt (default=fill as per background)', value="fill as per background", show_label=False)
|
286 |
-
|
287 |
-
["vit_h", "vit_l", "vit_b"], label="ViT base model for SAM", value="vit_h"
|
288 |
-
)
|
289 |
|
290 |
# text_prompt = gr.Textbox(lines=1, label="Prompt")
|
291 |
btn = gr.Button(value="Submit")
|
|
|
272 |
text_prompt = gr.Textbox(placeholder = 'Your prompt (what you want in place of what is erased)', label="Object class", show_label=True)
|
273 |
x_units = gr.Slider(minimum=0, maximum=300, step=10, value=100, label="x_units")
|
274 |
y_units = gr.Slider(minimum=0, maximum=300, step=10, value=0, label="y_units")
|
275 |
+
sam_type = gr.Dropdown(
|
276 |
+
["vit_h", "vit_l", "vit_b"], label="ViT base model for SAM", value="vit_h"
|
277 |
+
)
|
278 |
with gr.Accordion("Advanced options", open=False) as advanced_options:
|
279 |
box_threshold = gr.Slider(
|
280 |
label="Box Threshold", minimum=0.0, maximum=1.0, value=0.23, step=0.01
|
|
|
286 |
label="Text Threshold", minimum=0.0, maximum=1.0, value=0.25, step=0.01
|
287 |
)
|
288 |
inpaint_text_prompt = gr.Textbox(placeholder = 'Your prompt (default=fill as per background)', value="fill as per background", show_label=False)
|
289 |
+
|
|
|
|
|
290 |
|
291 |
# text_prompt = gr.Textbox(lines=1, label="Prompt")
|
292 |
btn = gr.Button(value="Submit")
|