jlazoff commited on
Commit
8ad5395
1 Parent(s): 4234b89

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -14
app.py CHANGED
@@ -4,11 +4,11 @@ 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")
@@ -17,14 +17,14 @@ from gradio.mix import Parallel, Series
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
 
@@ -52,11 +52,11 @@ In this article, we will discuss the latest innovations in machine learning tech
52
 
53
  sample = [[y], [x], [z]]
54
 
55
- iface = Parallel(#io1,
56
- #io2,
57
- #io3,
58
- #io4,
59
- #io5,
60
  #io6,
61
  #io7,
62
  #io8,
@@ -65,14 +65,14 @@ iface = Parallel(#io1,
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',
 
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")
 
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
 
 
52
 
53
  sample = [[y], [x], [z]]
54
 
55
+ iface = Parallel(io1,
56
+ io2,
57
+ io3,
58
+ io4,
59
+ io5,
60
  #io6,
61
  #io7,
62
  #io8,
 
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',