Video-To-Text / app.py
Rehman1603's picture
Create app.py
b30c695
raw
history blame contribute delete
877 Bytes
import gradio as gr
from summarize import Summarizer
interface = gr.Interface(fn = Summarizer,
inputs = [gr.inputs.Textbox(lines=2,
placeholder="Enter your link...",
label='YouTube Video Link'),
gr.inputs.Radio(["mT5", "BART"], type="value", label='Model')],
outputs = [gr.outputs.Textbox(
label="Summary")],
title = "Youtube Video Summarizer",
examples = [
['https://www.youtube.com/watch?v=WSbgixdC9g8', 'BART']
],
enable_queue=True)
interface.launch(debug=True)