Spaces:
Runtime error
Runtime error
Commit Β·
8844dc9
1
Parent(s): 201c4a4
Tennis match analysis demo
Browse files- app.py +21 -0
- requirements.txt.txt +1 -0
app.py
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
# Video URLs from your GitHub repo
|
| 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 |
+
**Advanced computer vision system for tennis match analysis**
|
| 11 |
+
|
| 12 |
+
β
95% player detection accuracy
|
| 13 |
+
β
88% ball tracking precision
|
| 14 |
+
β
Real-time shot classification (12 types)
|
| 15 |
+
β
Mini-court visualization
|
| 16 |
+
|
| 17 |
+
[π View Full Project on GitHub](https://github.com/HarshTomar1234/Tennis-Vision)
|
| 18 |
+
""",
|
| 19 |
+
allow_flagging="never"
|
| 20 |
+
)
|
| 21 |
+
demo.launch()
|
requirements.txt.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
gradio
|