davidberenstein1957 commited on
Commit
9fbfec1
Β·
1 Parent(s): d02e49d

Make frame comparison, navigation, and metrics sections visible by default in app layout

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -1528,7 +1528,7 @@ def create_app():
1528
  load_btn = gr.Button("πŸ”„ Load Videos", variant="primary", size="lg")
1529
 
1530
  # Frame comparison section (initially hidden)
1531
- frame_display = gr.Row(visible=False)
1532
  with frame_display:
1533
  with gr.Column():
1534
  gr.Markdown("### Video 1 - Current Frame")
@@ -1558,7 +1558,7 @@ def create_app():
1558
  )
1559
 
1560
  # Frame navigation (initially hidden) - moved underneath frames
1561
- frame_controls = gr.Row(visible=False)
1562
  with frame_controls:
1563
  frame_slider = gr.Slider(
1564
  minimum=0,
@@ -1570,7 +1570,7 @@ def create_app():
1570
  )
1571
 
1572
  # Comprehensive metrics visualization (initially hidden)
1573
- metrics_section = gr.Row(visible=False)
1574
  with metrics_section:
1575
  with gr.Column():
1576
  gr.Markdown("### πŸ“Š Metric Analysis")
@@ -1793,10 +1793,10 @@ def create_app():
1793
  None, # color_plot
1794
  None, # sharpness_plot
1795
  None, # overall_plot
1796
- gr.Row(visible=False), # frame_controls
1797
- gr.Row(visible=False), # frame_display
1798
- gr.Row(visible=False), # metrics_section
1799
- gr.Row(visible=False), # info_section
1800
  )
1801
 
1802
  # Enhanced auto-load function with debouncing to prevent multiple rapid calls
 
1528
  load_btn = gr.Button("πŸ”„ Load Videos", variant="primary", size="lg")
1529
 
1530
  # Frame comparison section (initially hidden)
1531
+ frame_display = gr.Row(visible=True)
1532
  with frame_display:
1533
  with gr.Column():
1534
  gr.Markdown("### Video 1 - Current Frame")
 
1558
  )
1559
 
1560
  # Frame navigation (initially hidden) - moved underneath frames
1561
+ frame_controls = gr.Row(visible=True)
1562
  with frame_controls:
1563
  frame_slider = gr.Slider(
1564
  minimum=0,
 
1570
  )
1571
 
1572
  # Comprehensive metrics visualization (initially hidden)
1573
+ metrics_section = gr.Row(visible=True)
1574
  with metrics_section:
1575
  with gr.Column():
1576
  gr.Markdown("### πŸ“Š Metric Analysis")
 
1793
  None, # color_plot
1794
  None, # sharpness_plot
1795
  None, # overall_plot
1796
+ gr.Row(visible=True), # frame_controls
1797
+ gr.Row(visible=True), # frame_display
1798
+ gr.Row(visible=True), # metrics_section
1799
+ gr.Row(visible=True), # info_section
1800
  )
1801
 
1802
  # Enhanced auto-load function with debouncing to prevent multiple rapid calls