File size: 585 Bytes
510495b
5c87a2c
 
da658b4
5c87a2c
 
 
bcb6944
5c87a2c
 
 
 
 
 
bcb6944
5c87a2c
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import gradio as gr
from pages.live_match import create_lbw_ui
from pages.upload_analysis import create_analysis_ui

# Define the Gradio interface with tabs
with gr.Blocks(title="Gully DRS - Decision Review System") as app:
    gr.Markdown("# Gully DRS - Decision Review System")
    
    # Create tabs for Live Match and Pose Analysis
    with gr.Tabs():
        with gr.TabItem("Live Match LBW Review"):
            create_lbw_ui()
        with gr.TabItem("Pose-Based Practice Analysis"):
            create_analysis_ui()

# Launch the app
if __name__ == "__main__":
    app.launch()