Spaces:
Runtime error
Runtime error
jlazoff
commited on
Commit
·
51844b5
1
Parent(s):
fa37177
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,22 +11,22 @@ from gradio.mix import Parallel, Series
|
|
| 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')
|
| 17 |
-
io11 = gr.Interface.load("huggingface/google/pegasus-billsum")
|
| 18 |
-
io12 = gr.Interface.load("huggingface/google/pegasus-big_patent")
|
| 19 |
-
io13 = gr.Interface.load("huggingface/google/pegasus-aeslc")
|
| 20 |
io14 = gr.Interface.load("huggingface/google/pegasus-large")
|
| 21 |
io15 = gr.Interface.load("huggingface/google/pegasus-pubmed")
|
| 22 |
-
io16 = gr.Interface.load("huggingface/google/bigbird-pegasus-large-arxiv")
|
| 23 |
-
io17 = gr.Interface.load("huggingface/sshleifer/distill-pegasus-xsum-16-4")
|
| 24 |
-
io18 = gr.Interface.load("huggingface/sshleifer/distill-pegasus-cnn-16-4")
|
| 25 |
io19 = gr.Interface.load("huggingface/tuner007/pegasus_summarizer")
|
| 26 |
io20 = gr.Interface.load("huggingface/pszemraj/pegasus-x-large-book-summary")
|
| 27 |
io21 = gr.Interface.load("huggingface/google/pegasus-x-large")
|
| 28 |
io22 = gr.Interface.load("huggingface/google/pegasus-x-base")
|
| 29 |
-
io23 = gr.Interface.load("huggingface/xysmalobia/pegasus-samsum")
|
| 30 |
|
| 31 |
desc = "Let Hugging Face models summarize texts for you. Note: Shorter articles generate faster summaries. This summarizer uses pegasus by Google. You can compare these models against each other on their performances."
|
| 32 |
|
|
@@ -59,26 +59,26 @@ iface = Parallel(#io1,
|
|
| 59 |
#io5,
|
| 60 |
#io6,
|
| 61 |
#io7,
|
| 62 |
-
io8,
|
| 63 |
io9,
|
| 64 |
io10,
|
| 65 |
-
io11,
|
| 66 |
-
io12,
|
| 67 |
-
io13,
|
| 68 |
io14,
|
| 69 |
io15,
|
| 70 |
-
io16,
|
| 71 |
-
io17,
|
| 72 |
-
io18,
|
| 73 |
io19,
|
| 74 |
io20,
|
| 75 |
io21,
|
| 76 |
io22,
|
| 77 |
-
io23,
|
| 78 |
theme='huggingface',
|
| 79 |
title='Biblical 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)
|
|
|
|
| 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')
|
| 17 |
+
#io11 = gr.Interface.load("huggingface/google/pegasus-billsum")
|
| 18 |
+
#io12 = gr.Interface.load("huggingface/google/pegasus-big_patent")
|
| 19 |
+
#io13 = gr.Interface.load("huggingface/google/pegasus-aeslc")
|
| 20 |
io14 = gr.Interface.load("huggingface/google/pegasus-large")
|
| 21 |
io15 = gr.Interface.load("huggingface/google/pegasus-pubmed")
|
| 22 |
+
#io16 = gr.Interface.load("huggingface/google/bigbird-pegasus-large-arxiv")
|
| 23 |
+
#io17 = gr.Interface.load("huggingface/sshleifer/distill-pegasus-xsum-16-4")
|
| 24 |
+
#io18 = gr.Interface.load("huggingface/sshleifer/distill-pegasus-cnn-16-4")
|
| 25 |
io19 = gr.Interface.load("huggingface/tuner007/pegasus_summarizer")
|
| 26 |
io20 = gr.Interface.load("huggingface/pszemraj/pegasus-x-large-book-summary")
|
| 27 |
io21 = gr.Interface.load("huggingface/google/pegasus-x-large")
|
| 28 |
io22 = gr.Interface.load("huggingface/google/pegasus-x-base")
|
| 29 |
+
#io23 = gr.Interface.load("huggingface/xysmalobia/pegasus-samsum")
|
| 30 |
|
| 31 |
desc = "Let Hugging Face models summarize texts for you. Note: Shorter articles generate faster summaries. This summarizer uses pegasus by Google. You can compare these models against each other on their performances."
|
| 32 |
|
|
|
|
| 59 |
#io5,
|
| 60 |
#io6,
|
| 61 |
#io7,
|
| 62 |
+
#io8,
|
| 63 |
io9,
|
| 64 |
io10,
|
| 65 |
+
#io11,
|
| 66 |
+
#io12,
|
| 67 |
+
#io13,
|
| 68 |
io14,
|
| 69 |
io15,
|
| 70 |
+
#io16,
|
| 71 |
+
#io17,
|
| 72 |
+
#io18,
|
| 73 |
io19,
|
| 74 |
io20,
|
| 75 |
io21,
|
| 76 |
io22,
|
| 77 |
+
#io23,
|
| 78 |
theme='huggingface',
|
| 79 |
title='Biblical 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=30, label="Text"))
|
| 83 |
|
| 84 |
iface.launch(inline=False)
|