Spaces:
Runtime error
Runtime error
File size: 411 Bytes
6ea0d31 cfa72c4 cbce115 b03d4de cbce115 1e56eb5 4ac237d b5fb62f c4d440c b584bfb 1e56eb5 c4d440c c3c5aca 3ffc046 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
from youtube_video import download_youtube_video
import requests
import gradio as gr
data = 'https://www.youtube.com/watch?v=bJ5FDtgOwjo'
def app(video_link):
video_path = download_youtube_video(video_link)
return video_path
interface = gr.Interface(
fn=app,
inputs=gr.Textbox(data, label="Enter YouTube link"),
outputs=gr.Video(label = "video_path")
)
interface.launch(debug=True)
|