File size: 414 Bytes
802939d
cfdee17
338290b
f5c2349
 
cfdee17
36ecbae
 
80b9a64
 
36ecbae
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from youtube_video import download_youtube_video
import gradio as gr
import pytube
from pytube import YouTube



def app(video_link):
    video  = download_youtube_video(video_link)
    return gr.Video(video)

interface = gr.Interface(fn = app, inputs = [gr.components.Textbox(label="Enter youtube link")],
                         outputs=[gr.components.Video(label="Your result")]
)

interface.launch(debug=True)