SuperSecureHuman commited on
Commit
fbbea7e
1 Parent(s): 9cfe1b5

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +19 -0
app.py ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from gradio.mix import Parallel
3
+
4
+ title = "Text Summarizer"
5
+ description = "Choose the best?"
6
+
7
+
8
+ io1 = gr.Interface.load('huggingface/sshleifer/distilbart-cnn-12-6')
9
+ io2 = gr.Interface.load('huggingface/sshleifer/distilbart-cnn-6-6')
10
+ io3 = gr.Interface.load('huggingface/sshleifer/distilbart-xsum-12-1')
11
+ io4 = gr.Interface.load("huggingface/facebook/bart-large-cnn")
12
+ io5 = gr.Interface.load("huggingface/csebuetnlp/mT5_multilingual_XLSum")
13
+ io6 = gr.Interface.load("huggingface/google/pegasus-xsum")
14
+
15
+ iface = Parallel(io1, io2, io3, io4, io5, io6,
16
+ theme='huggingface',
17
+ inputs = gr.inputs.Textbox(lines = 10, label="Text"), title=title, description=description)
18
+
19
+ iface.launch(share=False)