Api_model / app.py
MO-12's picture
Upload 4 files
0827c75 verified
raw
history blame contribute delete
427 Bytes
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()