viddlr / app.py
Salman11223's picture
Update app.py
f5c2349 verified
raw
history blame
429 Bytes
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)