lbw_drs_app / app.py
dschandra's picture
Create app.py
cba28f7 verified
raw
history blame
488 Bytes
import gradio as gr
from video_processor import process_video
import os
def analyze_lbw(video):
output_path = process_video(video)
return output_path
app = gr.Interface(
fn=analyze_lbw,
inputs=gr.Video(label="Upload Cricket Clip"),
outputs=gr.Video(label="LBW Analysis Output"),
title="Smart LBW Decision System",
description="Upload a short video to analyze LBW using AI-powered object detection and tracking"
)
if __name__ == "__main__":
app.launch()