Spaces:
Running
Running
| import gradio as gr | |
| from gradio.media import get_video | |
| def video_identity(video): | |
| return video | |
| # get_video() returns file paths to sample media included with Gradio | |
| demo = gr.Interface(video_identity, | |
| gr.Video(), | |
| "playable_video", | |
| examples=[ | |
| get_video("world.mp4") | |
| ], | |
| cache_examples=True, | |
| api_name="predict",) | |
| if __name__ == "__main__": | |
| demo.launch() | |