File size: 427 Bytes
0827c75
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import gradio as gr
from API_Model import predict_gradio

iface = gr.Interface(
    fn=predict_gradio,
    inputs=gr.Video(label="Upload Video (mp4)"),
    outputs=[
        gr.JSON(label="Prediction Results"),
        gr.Video(label="Summary Video")
    ],
    title="VideoMAE Action Classifier",
    description="Detect Goal / Card / Substitution segments in a football video using VideoMAE"
)

iface.launch()