File size: 429 Bytes
802939d cfdee17 338290b f5c2349 cfdee17 36ecbae e2d7c21 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):
downloaded_file_path = download_youtube_video(video_link)
return downloaded_file_path
interface = gr.Interface(fn = app, inputs = [gr.components.Textbox(label="Enter youtube link")],
outputs=[gr.components.Video(label="Your result")]
)
interface.launch(debug=True) |