merve HF staff commited on
Commit
ad09938
1 Parent(s): 2cd9d38

Added explanations

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -93,11 +93,11 @@ with gr.Blocks(title="SlimSAM") as demo:
93
  gr.Markdown("SlimSAM is the pruned-distilled version of SAM that is smaller.")
94
  gr.Markdown("In this demo, you can compare SlimSAM and SAM outputs in point and box prompts.")
95
 
96
- with gr.Tab("Box Prompt"):
97
  with gr.Row():
98
  with gr.Column(scale=1):
99
  # Title
100
- gr.Markdown("Box Prompting")
101
  with gr.Row():
102
  with gr.Column():
103
  im = ImagePrompter()
@@ -109,11 +109,11 @@ with gr.Blocks(title="SlimSAM") as demo:
109
 
110
  btn.click(infer_box, inputs=im, outputs=[output_box_slimsam, output_box_sam])
111
 
112
- with gr.Tab("Point Prompt"):
113
  with gr.Row():
114
  with gr.Column(scale=1):
115
  # Title
116
- gr.Markdown("Point Prompting")
117
  with gr.Row():
118
  with gr.Column():
119
  im = gr.ImageEditor(
 
93
  gr.Markdown("SlimSAM is the pruned-distilled version of SAM that is smaller.")
94
  gr.Markdown("In this demo, you can compare SlimSAM and SAM outputs in point and box prompts.")
95
 
96
+ with gr.Tab("**Box Prompt**"):
97
  with gr.Row():
98
  with gr.Column(scale=1):
99
  # Title
100
+ gr.Markdown("To try box prompting, simply upload and image and draw a box on it.")
101
  with gr.Row():
102
  with gr.Column():
103
  im = ImagePrompter()
 
109
 
110
  btn.click(infer_box, inputs=im, outputs=[output_box_slimsam, output_box_sam])
111
 
112
+ with gr.Tab("**Point Prompt**"):
113
  with gr.Row():
114
  with gr.Column(scale=1):
115
  # Title
116
+ gr.Markdown("To try point prompting, simply upload and image and leave a dot on it.")
117
  with gr.Row():
118
  with gr.Column():
119
  im = gr.ImageEditor(