File size: 329 Bytes
6ea0d31
cbce115
3c2cc03
cbce115
4ac237d
 
c3c5aca
c4d440c
 
 
4ac237d
c4d440c
c3c5aca
c4d440c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from youtube_video import download_youtube_video
import gradio as gr

def app(video_link):
    video_path = download_youtube_video(video_link)
    return video_path

interface = gr.Interface(
    fn=app,
    inputs=gr.Textbox(label="Enter YouTube link"),
    outputs=gr.Video(label = "video_path")
)

interface.launch(debug=True)