Spaces:
Runtime error
Runtime error
jlazoff
commited on
Commit
·
db02bb4
1
Parent(s):
d1e9ca0
Update app.py
Browse files
app.py
CHANGED
@@ -4,13 +4,13 @@ from transformers import pipeline
|
|
4 |
import gradio as gr
|
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")
|
15 |
io9 = gr.Interface.load("huggingface/google/pegasus-wikihow")
|
16 |
io10 = gr.Interface.load('huggingface/google/pegasus-gigaword')
|
@@ -79,6 +79,6 @@ iface = Parallel(io1,
|
|
79 |
title='Hugging Face Text Summarizer',
|
80 |
description=desc,
|
81 |
examples=sample, # replace "sample" with directory to let gradio scan through those files and give you the text
|
82 |
-
inputs=gr.inputs.Textbox(lines=
|
83 |
|
84 |
iface.launch(inline=False)
|
|
|
4 |
import gradio as gr
|
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")
|
15 |
io9 = gr.Interface.load("huggingface/google/pegasus-wikihow")
|
16 |
io10 = gr.Interface.load('huggingface/google/pegasus-gigaword')
|
|
|
79 |
title='Hugging Face Text Summarizer',
|
80 |
description=desc,
|
81 |
examples=sample, # replace "sample" with directory to let gradio scan through those files and give you the text
|
82 |
+
inputs=gr.inputs.Textbox(lines=20, label="Text"))
|
83 |
|
84 |
iface.launch(inline=False)
|