Rehman1603's picture
Update app.py
6041dae
raw
history blame
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)