VisionLanguageGroup commited on
Commit
25ea9b7
Β·
1 Parent(s): 88f9ed6

slide bar

Browse files
Files changed (1) hide show
  1. app.py +21 -21
app.py CHANGED
@@ -995,13 +995,6 @@ with gr.Blocks(
995
  value="No",
996
  label="πŸ”² Specify Bounding Box?"
997
  )
998
- seg_alpha_slider = gr.Slider(
999
- minimum=0.0,
1000
- maximum=1.0,
1001
- step=0.05,
1002
- value=0.5,
1003
- label="🎚️ Overlay Opacity"
1004
- )
1005
  with gr.Row():
1006
  run_seg_btn = gr.Button("▢️ Run Segmentation", variant="primary", size="lg")
1007
  clear_btn = gr.Button("πŸ”„ Clear Selection", variant="secondary")
@@ -1019,6 +1012,13 @@ with gr.Blocks(
1019
  label="πŸ“Έ Segmentation Result",
1020
  elem_classes="uniform-height"
1021
  )
 
 
 
 
 
 
 
1022
 
1023
  # Download Original Prediction
1024
  download_mask_btn = gr.File(
@@ -1182,13 +1182,6 @@ with gr.Blocks(
1182
  value="No",
1183
  label="πŸ”² Specify Bounding Box?"
1184
  )
1185
- count_alpha_slider = gr.Slider(
1186
- minimum=0.0,
1187
- maximum=1.0,
1188
- step=0.05,
1189
- value=0.3,
1190
- label="🎚️ Heatmap Opacity"
1191
- )
1192
 
1193
  with gr.Row():
1194
  count_btn = gr.Button("▢️ Run Counting", variant="primary", size="lg")
@@ -1210,6 +1203,13 @@ with gr.Blocks(
1210
  elem_id="density_map_output"
1211
 
1212
  )
 
 
 
 
 
 
 
1213
  count_status = gr.Textbox(
1214
  label="πŸ“Š Statistics",
1215
  lines=2
@@ -1381,13 +1381,6 @@ with gr.Blocks(
1381
  value="No",
1382
  label="πŸ”² Specify Bounding Box?"
1383
  )
1384
- track_alpha_slider = gr.Slider(
1385
- minimum=0.0,
1386
- maximum=1.0,
1387
- step=0.05,
1388
- value=0.3,
1389
- label="🎚️ Overlay Opacity"
1390
- )
1391
 
1392
  with gr.Row():
1393
  track_btn = gr.Button("▢️ Run Tracking", variant="primary", size="lg")
@@ -1408,6 +1401,13 @@ with gr.Blocks(
1408
  elem_classes="uniform-height",
1409
  interactive=False
1410
  )
 
 
 
 
 
 
 
1411
 
1412
  track_output = gr.Textbox(
1413
  label="πŸ“Š Tracking Information",
 
995
  value="No",
996
  label="πŸ”² Specify Bounding Box?"
997
  )
 
 
 
 
 
 
 
998
  with gr.Row():
999
  run_seg_btn = gr.Button("▢️ Run Segmentation", variant="primary", size="lg")
1000
  clear_btn = gr.Button("πŸ”„ Clear Selection", variant="secondary")
 
1012
  label="πŸ“Έ Segmentation Result",
1013
  elem_classes="uniform-height"
1014
  )
1015
+ seg_alpha_slider = gr.Slider(
1016
+ minimum=0.0,
1017
+ maximum=1.0,
1018
+ step=0.05,
1019
+ value=0.5,
1020
+ label="🎚️ Overlay Opacity"
1021
+ )
1022
 
1023
  # Download Original Prediction
1024
  download_mask_btn = gr.File(
 
1182
  value="No",
1183
  label="πŸ”² Specify Bounding Box?"
1184
  )
 
 
 
 
 
 
 
1185
 
1186
  with gr.Row():
1187
  count_btn = gr.Button("▢️ Run Counting", variant="primary", size="lg")
 
1203
  elem_id="density_map_output"
1204
 
1205
  )
1206
+ count_alpha_slider = gr.Slider(
1207
+ minimum=0.0,
1208
+ maximum=1.0,
1209
+ step=0.05,
1210
+ value=0.3,
1211
+ label="🎚️ Heatmap Opacity"
1212
+ )
1213
  count_status = gr.Textbox(
1214
  label="πŸ“Š Statistics",
1215
  lines=2
 
1381
  value="No",
1382
  label="πŸ”² Specify Bounding Box?"
1383
  )
 
 
 
 
 
 
 
1384
 
1385
  with gr.Row():
1386
  track_btn = gr.Button("▢️ Run Tracking", variant="primary", size="lg")
 
1401
  elem_classes="uniform-height",
1402
  interactive=False
1403
  )
1404
+ track_alpha_slider = gr.Slider(
1405
+ minimum=0.0,
1406
+ maximum=1.0,
1407
+ step=0.05,
1408
+ value=0.3,
1409
+ label="🎚️ Overlay Opacity"
1410
+ )
1411
 
1412
  track_output = gr.Textbox(
1413
  label="πŸ“Š Tracking Information",