Spaces:
Runtime error
Runtime error
Kevin Xu
commited on
Commit
·
5254d8d
1
Parent(s):
df428ae
5 models
Browse files
app.py
CHANGED
@@ -5,10 +5,10 @@ import gradio as gr
|
|
5 |
from gradio.mix import Parallel, Series
|
6 |
|
7 |
io1 = gr.Interface.load('huggingface/google/pegasus-large')
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
# io6 = gr.Interface.load("huggingface/google/pegasus-reddit_tifu")
|
13 |
# io7 = gr.Interface.load('huggingface/google/pegasus-arxiv')
|
14 |
# io8 = gr.Interface.load("huggingface/google/pegasus-pubmed")
|
@@ -43,7 +43,11 @@ In this article, we will discuss the latest innovations in machine learning tech
|
|
43 |
sample = [[y],[x],[z]]
|
44 |
|
45 |
iface = Parallel(io1,
|
46 |
-
|
|
|
|
|
|
|
|
|
47 |
theme='huggingface',
|
48 |
title= 'Hugging Face Text Summarizer',
|
49 |
description = desc,
|
|
|
5 |
from gradio.mix import Parallel, Series
|
6 |
|
7 |
io1 = gr.Interface.load('huggingface/google/pegasus-large')
|
8 |
+
io2 = gr.Interface.load("huggingface/google/pegasus-cnn_dailymail")
|
9 |
+
io3 = gr.Interface.load("huggingface/google/pegasus-xsum")
|
10 |
+
io4 = gr.Interface.load('huggingface/google/pegasus-newsroom')
|
11 |
+
io5 = gr.Interface.load("huggingface/google/pegasus-multi_news")
|
12 |
# io6 = gr.Interface.load("huggingface/google/pegasus-reddit_tifu")
|
13 |
# io7 = gr.Interface.load('huggingface/google/pegasus-arxiv')
|
14 |
# io8 = gr.Interface.load("huggingface/google/pegasus-pubmed")
|
|
|
43 |
sample = [[y],[x],[z]]
|
44 |
|
45 |
iface = Parallel(io1,
|
46 |
+
io2,
|
47 |
+
io3,
|
48 |
+
io4,
|
49 |
+
io5,
|
50 |
+
# io6, io7, io8, io9, io10, io11, io12, io13,
|
51 |
theme='huggingface',
|
52 |
title= 'Hugging Face Text Summarizer',
|
53 |
description = desc,
|