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()Runnable examples for the frozen Gradio Lite 5.45.0 browser runtime.
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.
import gradio as gr
def video_identity(video):
return video
demo = gr.Interface(
video_identity,
gr.Video(),
"playable_video",
flagging_mode="never",
)
demo.launch()