freddyaboulton's picture
Upload folder using huggingface_hub
e9967f3 verified
raw
history blame contribute delete
506 Bytes
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()