Spaces:
Runtime error
Runtime error
Commit Β·
0137b52
1
Parent(s): 8844dc9
Tennis match analysis demo
Browse files
app.py
CHANGED
|
@@ -1,21 +1,24 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
-
|
|
|
|
| 3 |
output_video = "https://raw.githubusercontent.com/HarshTomar1234/Tennis-Vision/main/output_videos/output_video.mp4"
|
|
|
|
| 4 |
demo = gr.Interface(
|
| 5 |
fn=lambda: output_video,
|
| 6 |
inputs=[],
|
| 7 |
outputs=gr.Video(label="Tennis Vision Analysis Demo"),
|
| 8 |
title="πΎ Tennis Vision ",
|
| 9 |
description="""
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
)
|
|
|
|
| 21 |
demo.launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
|
| 3 |
+
# Video URL from your GitHub repo
|
| 4 |
output_video = "https://raw.githubusercontent.com/HarshTomar1234/Tennis-Vision/main/output_videos/output_video.mp4"
|
| 5 |
+
|
| 6 |
demo = gr.Interface(
|
| 7 |
fn=lambda: output_video,
|
| 8 |
inputs=[],
|
| 9 |
outputs=gr.Video(label="Tennis Vision Analysis Demo"),
|
| 10 |
title="πΎ Tennis Vision ",
|
| 11 |
description="""
|
| 12 |
+
**Tennis match analysis with 95% player detection and real-time ball tracking**
|
| 13 |
+
|
| 14 |
+
β
YOLOv8 player detection
|
| 15 |
+
β
Custom ball tracking model
|
| 16 |
+
β
Shot classification (12 types)
|
| 17 |
+
β
Mini-court visualization
|
| 18 |
+
|
| 19 |
+
[π View Full Project on GitHub](https://github.com/HarshTomar1234/Tennis-Vision)
|
| 20 |
+
""",
|
| 21 |
+
flagging_mode="never"
|
| 22 |
)
|
| 23 |
+
|
| 24 |
demo.launch()
|