Video-Display / app.py
jordonpeter01's picture
Update app.py
29cbab8 verified
raw
history blame contribute delete
467 Bytes
import gradio as gr
import webbrowser
def display_video(url):
webbrowser.open("index.html")
demo = gr.Interface(
display_video,
gr.inputs.Textbox(label="URL do vídeo"),
gr.outputs.HTML(),
examples=[
["https://www.example.com/video.mp4"]
],
title="Player de vídeo estilo YouTube",
theme="bootstrap",
layout="vertical",
description="Cole a URL do vídeo e clique em 'Reproduzir' para reproduzi-lo.",
)
demo.launch()