Spaces:
Runtime error
Runtime error
import gradio as gr | |
title = "YouTube Summorize (en,ua,ru)" | |
css=""" | |
footer {visibility: hidden} | |
.gradio-container {padding-top: 100px} | |
""" | |
with gr.Blocks(css=css, title=title) as demo: | |
gr.HTML("<h3>A simple way to summarize YouTube video</h3>") | |
with gr.Row(): | |
with gr.Column(): | |
input_d = gr.Textbox(label="YouTube video URL", placeholder="https://www.youtube.com/watch?v=XXXXXXXX", value="") | |
greet_btn = gr.Button("Summarise") | |
dt_2 = gr.outputs.HTML() | |
dt_1 = gr.outputs.HTML() | |
dt =[dt_1, dt_2] | |
greet_btn.click(generate, inputs=input_d, outputs=dt_1) | |
demo.load(generate, inputs=input_d, outputs=dt_1) | |
demo.queue() | |
demo.launch(debug=True, share=False) |