video-size / app.py
hysts's picture
hysts HF Staff
Update
b3e631b
raw
history blame contribute delete
430 Bytes
#!/usr/bin/env python
import gradio as gr
with gr.Blocks() as demo:
with gr.Row():
gr.Video('data/dog0.mp4')
gr.Video('data/dog1.mp4')
with gr.Row():
gr.Video('data/dog0.mp4', height=400)
gr.Video('data/dog1.mp4', height=400)
with gr.Row():
gr.Video('data/dog0.mp4', width=100, min_width=100)
gr.Video('data/dog1.mp4', width=100, min_width=100)
demo.queue().launch()