Spaces:
Sleeping
Sleeping
File size: 1,032 Bytes
261c04c 55fe523 261c04c 55fe523 261c04c 55fe523 261c04c 531d444 261c04c |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
import gradio as gr
import requests
import os
# Download video from Google Drive
video_path = "output_video.avi"
if not os.path.exists(video_path):
print("Downloading video...")
file_id = "1wTchos7ReXpUz1dJU-Bu2f04G9KvDp16"
url = f"https://drive.google.com/uc?export=download&id={file_id}&confirm=t"
response = requests.get(url, stream=True)
with open(video_path, 'wb') as f:
for chunk in response.iter_content(chunk_size=8192):
f.write(chunk)
print("Download complete!")
with gr.Blocks(title="Field Fusion") as demo:
gr.Markdown("""
# β½ Field Fusion - Football Match Analysis
**Football analysis with 91% detection mAP and 94% tracking accuracy**
β
YOLOv8 player detection β’ β
ByteTrack tracking β’ β
Team classification β’ β
Possession stats
[π View Full Project on GitHub](https://github.com/HarshTomar1234/Field_Fusion)
""")
gr.Video(value=video_path, label="Field Fusion Analysis Demo", autoplay=True)
demo.launch() |