File size: 467 Bytes
8ebd664
1bf1310
8ebd664
 
29cbab8
8ebd664
97459f7
 
c1c005a
 
873df1b
 
 
 
 
 
29cbab8
97459f7
 
c1c005a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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()