castlebbs's picture
Add video
80bb04a
raw
history blame contribute delete
902 Bytes
import gradio as gr
def create_demo_video_tab():
"""Create the content for the Demo Video tab."""
# Vimeo embed HTML
vimeo_html = """
<div style="padding:56.25% 0 0 0;position:relative;">
<iframe src="https://player.vimeo.com/video/1141884335?badge=0&amp;autopause=0&amp;player_id=0&amp;app_id=58479"
frameborder="0"
allow="autoplay; fullscreen; picture-in-picture; clipboard-write; encrypted-media; web-share"
referrerpolicy="strict-origin-when-cross-origin"
style="position:absolute;top:0;left:0;width:100%;height:100%;"
title="MCP 1st birthday Hackathon - Car Diagnostic Agent">
</iframe>
</div>
<script src="https://player.vimeo.com/api/player.js"></script>
"""
with gr.Column():
gr.Markdown("## Demo Video")
gr.HTML(vimeo_html)