Video Identity

Runnable examples for the frozen Gradio Lite 5.45.0 browser runtime.

Pass an uploaded video through a Gradio app without changing it.

This coding playground demonstrates browser video input and playable video output. Click Run, choose a video from your device, and submit it. The example adds no remote upload operation.

Code
import gradio as gr

def video_identity(video):
    return video


demo = gr.Interface(
    video_identity,
    gr.Video(),
    "playable_video",
    flagging_mode="never",
)

demo.launch()
import gradio as gr def video_identity(video): return video demo = gr.Interface( video_identity, gr.Video(), "playable_video", flagging_mode="never", ) demo.launch()