Alifarsi commited on
Commit
f9a43d0
1 Parent(s): f3d27a8

Add app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -3
app.py CHANGED
@@ -1,7 +1,12 @@
1
  import gradio as gr
2
 
3
- def greet(name):
4
- return "Hello " + name + "!!"
 
 
 
 
 
 
5
 
6
- iface = gr.Interface(fn=greet, inputs="text", outputs="text")
7
  iface.launch()
 
1
  import gradio as gr
2
 
3
+ io1 = gr.Interface.load('huggingface/sshleifer/distilbart-cnn-12-6')
4
+ io2 = gr.Interface.load("huggingface/facebook/bart-large-cnn")
5
+ io3 = gr.Interface.load("huggingface/google/pegasus-xsum")
6
+ io4 = gr.Interface.load("huggingface/sshleifer/distilbart-cnn-6-6")
7
+
8
+ iface = Parallel(io1, io2, io3, io4,
9
+ theme='huggingface',
10
+ inputs = gr.inputs.Textbox(lines = 10, label="Text"))
11
 
 
12
  iface.launch()