Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,12 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
|
4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
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()
|