Spaces:
Sleeping
Sleeping
| 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() | |