Coddieharsh commited on
Commit
0137b52
Β·
1 Parent(s): 8844dc9

Tennis match analysis demo

Browse files
Files changed (1) hide show
  1. app.py +14 -11
app.py CHANGED
@@ -1,21 +1,24 @@
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()
 
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()