video_component / run.py
aliabd's picture
aliabd HF staff
Upload folder using huggingface_hub
55efc84 verified
raw
history blame contribute delete
461 Bytes
import gradio as gr
import os
a = os.path.join(os.path.dirname(__file__), "files/world.mp4") # Video
b = os.path.join(os.path.dirname(__file__), "files/a.mp4") # Video
c = os.path.join(os.path.dirname(__file__), "files/b.mp4") # Video
demo = gr.Interface(
fn=lambda x: x,
inputs=gr.Video(),
outputs=gr.Video(),
examples=[
[a],
[b],
[c],
],
cache_examples=True
)
if __name__ == "__main__":
demo.launch()