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