File size: 759 Bytes
fbbea7e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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)