SuperSecureHuman's picture
Create app.py
fbbea7e
raw
history blame contribute delete
759 Bytes
import gradio as gr
from gradio.mix import Parallel
title = "Text Summarizer"
description = "Choose the best?"
io1 = gr.Interface.load('huggingface/sshleifer/distilbart-cnn-12-6')
io2 = gr.Interface.load('huggingface/sshleifer/distilbart-cnn-6-6')
io3 = gr.Interface.load('huggingface/sshleifer/distilbart-xsum-12-1')
io4 = gr.Interface.load("huggingface/facebook/bart-large-cnn")
io5 = gr.Interface.load("huggingface/csebuetnlp/mT5_multilingual_XLSum")
io6 = gr.Interface.load("huggingface/google/pegasus-xsum")
iface = Parallel(io1, io2, io3, io4, io5, io6,
theme='huggingface',
inputs = gr.inputs.Textbox(lines = 10, label="Text"), title=title, description=description)
iface.launch(share=False)