Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /gradio-app_gradio /demo /video_component /run.py
| import gradio as gr | |
| # get_video() returns the file path to sample videos included with Gradio | |
| from gradio.media import get_video, MEDIA_PATHS | |
| demo = gr.Interface( | |
| fn=lambda x: x, | |
| inputs=gr.Video(), | |
| outputs=gr.Video(), | |
| examples=[ | |
| [get_video("world.mp4")], | |
| [get_video("a.mp4")], | |
| [get_video("b.mp4")], | |
| ], | |
| api_name="predict", | |
| cache_examples=True | |
| ) | |
| if __name__ == "__main__": | |
| demo.launch(allowed_paths=[str(p) for p in MEDIA_PATHS]) | |
Xet Storage Details
- Size:
- 486 Bytes
- Xet hash:
- b3718df380f29be626b23d3b0a5bc81bce21aa9c14cfd5006556890a3811fceb
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.