File size: 374 Bytes
51bd0ad
 
5ab1008
 
51bd0ad
5ab1008
 
 
 
 
 
51bd0ad
5ab1008
51bd0ad
5ab1008
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import gradio as gr

def video_identity(video):
    return video

# Create a Gradio Interface with a video input and output
demo = gr.Interface(
    video_identity,
    gr.Video(),  # Input component for uploading a video
    "playable_video"  # Output component for displaying the video
)

# Launch the Gradio app
if __name__ == "__main__":
    demo.launch(show_error=True)