huzey commited on
Commit
e06cf43
1 Parent(s): 58c8f75
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -137,6 +137,7 @@ with gr.Blocks() as demo:
137
 
138
  with gr.Row():
139
  with gr.Column(scale=5, min_width=200):
 
140
  input_gallery = gr.Gallery(value=[], label="Select images", show_label=False, elem_id="images", columns=[3], rows=[1], object_fit="contain", height="auto", type="pil", show_share_button=False)
141
  submit_button = gr.Button("🔴Submit", elem_id="submit_button")
142
  clear_images_button = gr.Button("🗑️Clear Images")
@@ -146,6 +147,7 @@ with gr.Blocks() as demo:
146
  gr.Gallery(value=downscaled_images[:3] + downscaled_outputs[:3], label="Example Set A", show_label=False, columns=[3], rows=[2], object_fit="scale-down", height="200px", show_share_button=False)
147
 
148
  with gr.Column(scale=5, min_width=200):
 
149
  output_gallery = gr.Gallery(value=[], label="NCUT Embedding", show_label=False, elem_id="ncut", columns=[3], rows=[1], object_fit="contain", height="auto")
150
  model_dropdown = gr.Dropdown(["SAM(sam_vit_b)", "MobileSAM", "DiNO(dinov2_vitb14_reg)", "CLIP(openai/clip-vit-base-patch16)"], label="Model", value="SAM(sam_vit_b)", elem_id="model_name")
151
  layer_slider = gr.Slider(0, 11, step=1, label="Layer", value=11, elem_id="layer")
 
137
 
138
  with gr.Row():
139
  with gr.Column(scale=5, min_width=200):
140
+ gr.Markdown('### Input Images')
141
  input_gallery = gr.Gallery(value=[], label="Select images", show_label=False, elem_id="images", columns=[3], rows=[1], object_fit="contain", height="auto", type="pil", show_share_button=False)
142
  submit_button = gr.Button("🔴Submit", elem_id="submit_button")
143
  clear_images_button = gr.Button("🗑️Clear Images")
 
147
  gr.Gallery(value=downscaled_images[:3] + downscaled_outputs[:3], label="Example Set A", show_label=False, columns=[3], rows=[2], object_fit="scale-down", height="200px", show_share_button=False)
148
 
149
  with gr.Column(scale=5, min_width=200):
150
+ gr.Markdown('### Output Images')
151
  output_gallery = gr.Gallery(value=[], label="NCUT Embedding", show_label=False, elem_id="ncut", columns=[3], rows=[1], object_fit="contain", height="auto")
152
  model_dropdown = gr.Dropdown(["SAM(sam_vit_b)", "MobileSAM", "DiNO(dinov2_vitb14_reg)", "CLIP(openai/clip-vit-base-patch16)"], label="Model", value="SAM(sam_vit_b)", elem_id="model_name")
153
  layer_slider = gr.Slider(0, 11, step=1, label="Layer", value=11, elem_id="layer")