bklg commited on
Commit
b145f09
1 Parent(s): 6bf4834

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -307,7 +307,7 @@ with gr.Blocks(css=css, title='Region Spot') as demo:
307
  add_or_remove = gr.Radio(["Mask", "Background"], value="Mask", label="Point_label (foreground/background)")
308
  text_box_p = gr.Textbox(label="vocabulary", value="dog,cat")
309
  with gr.Column():
310
- segment_btn_p = gr.Button("Segment with points prompt", variant='primary')
311
  clear_btn_p = gr.Button("Clear", variant='secondary')
312
 
313
  gr.Markdown("Try some of the examples below")
@@ -349,7 +349,7 @@ with gr.Blocks(css=css, title='Region Spot') as demo:
349
  text_box_t = gr.Textbox(label="text prompt", value="dog,cat")
350
 
351
  with gr.Column():
352
- segment_btn_t = gr.Button("Segment with text", variant='primary')
353
  clear_btn_t = gr.Button("Clear", variant="secondary")
354
 
355
  gr.Markdown("Try some of the examples below")
@@ -394,7 +394,7 @@ with gr.Blocks(css=css, title='Region Spot') as demo:
394
  contour_check = gr.Checkbox(value=True, label='withContours', info='draw the edges of the masks')
395
  text_box_b = gr.Textbox(label="vocabulary", value="dog,cat")
396
  with gr.Column():
397
- segment_btn_b = gr.Button("Segment with box", variant='primary')
398
  clear_btn_b = gr.Button("Clear", variant="secondary")
399
 
400
  gr.Markdown("Try some of the examples below")
 
307
  add_or_remove = gr.Radio(["Mask", "Background"], value="Mask", label="Point_label (foreground/background)")
308
  text_box_p = gr.Textbox(label="vocabulary", value="dog,cat")
309
  with gr.Column():
310
+ segment_btn_p = gr.Button("Recognize with points prompt", variant='primary')
311
  clear_btn_p = gr.Button("Clear", variant='secondary')
312
 
313
  gr.Markdown("Try some of the examples below")
 
349
  text_box_t = gr.Textbox(label="text prompt", value="dog,cat")
350
 
351
  with gr.Column():
352
+ segment_btn_t = gr.Button("Recognize with text", variant='primary')
353
  clear_btn_t = gr.Button("Clear", variant="secondary")
354
 
355
  gr.Markdown("Try some of the examples below")
 
394
  contour_check = gr.Checkbox(value=True, label='withContours', info='draw the edges of the masks')
395
  text_box_b = gr.Textbox(label="vocabulary", value="dog,cat")
396
  with gr.Column():
397
+ segment_btn_b = gr.Button("Recognize with box", variant='primary')
398
  clear_btn_b = gr.Button("Clear", variant="secondary")
399
 
400
  gr.Markdown("Try some of the examples below")