import gradio as gr
def process_video(video):
# This function can process the video (e.g., summarize or analyze it)
return f"Video uploaded successfully: {video.name}"
Gradio interface
video_interface = gr.Interface(
fn=process_video,
inputs=gr.Video(label=“Upload your video”),
outputs=“text”,
title=“Video Presenter”
)
video_interface.launch()