Spaces:
Runtime error
Runtime error
from youtube_video import download_youtube_video | |
import requests | |
from huggingface_hub import InferenceClient | |
import gradio as gr | |
def my_inference_function(name): | |
return "Heldddddddddddddddlo " + name + "!" | |
gradio_interface = gradio.Interface( | |
fn=my_inference_function, | |
inputs="text", | |
outputs="text", | |
examples=[ | |
["Jill"], | |
["Sam"] | |
], | |
title="_ _", | |
description="_ _ _", | |
article="_" | |
) | |
data = 'https://www.youtube.com/watch?v=ETDEuH3YL7I' #'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") | |
) | |
#gr.Interface.queue(api_open=True) | |
#gradio_interface.launch() | |
interface.launch(debug=True) | |