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("

A simple way to summarize YouTube video

") 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_video_html, inputs=input_d, outputs=dt_2) greet_btn.click(generate, inputs=input_d, outputs=dt_1) demo.load(generate_video_html, inputs=input_d, outputs=dt_2) demo.load(generate, inputs=input_d, outputs=dt_1) demo.queue() demo.launch(debug=True, share=False)