Spaces:
Runtime error
Runtime error
anaxagoras7
commited on
Commit
·
c46253d
1
Parent(s):
fc90c85
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from transformers import pipeline
|
2 |
+
import gradio as gr
|
3 |
+
from gradio.mix import Parallel, Series
|
4 |
+
|
5 |
+
io1 = gr.Interface.load('huggingface/sshleifer/distilbart-cnn-12-6')
|
6 |
+
io2 = gr.Interface.load("huggingface/facebook/bart-large-cnn")
|
7 |
+
io3 = gr.Interface.load("huggingface/google/pegasus-xsum")
|
8 |
+
|
9 |
+
iface = Parallel(io1, io2, io3,
|
10 |
+
theme='huggingface',
|
11 |
+
inputs = gr.inputs.Textbox(lines = 10, label="Text"))
|
12 |
+
|
13 |
+
iface.launch(inline = False)
|