Spaces:
Sleeping
Sleeping
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
from video_processor import process_video
|
3 |
+
import os
|
4 |
+
|
5 |
+
def analyze_lbw(video):
|
6 |
+
output_path = process_video(video)
|
7 |
+
return output_path
|
8 |
+
|
9 |
+
app = gr.Interface(
|
10 |
+
fn=analyze_lbw,
|
11 |
+
inputs=gr.Video(label="Upload Cricket Clip"),
|
12 |
+
outputs=gr.Video(label="LBW Analysis Output"),
|
13 |
+
title="Smart LBW Decision System",
|
14 |
+
description="Upload a short video to analyze LBW using AI-powered object detection and tracking"
|
15 |
+
)
|
16 |
+
|
17 |
+
if __name__ == "__main__":
|
18 |
+
app.launch()
|