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)