MicGuest commited on
Commit
afe8ba3
·
unverified ·
1 Parent(s): 21b3d23

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -2,9 +2,9 @@ from transformers import pipeline
2
  import gradio as gr
3
  from gradio.mix import Parallel, Series
4
 
5
- io1 = gr.Interface.load("huggingface/sshleifer/distilbart-cnn-12-6")
6
- io2 = gr.Interface.load("huggingface/facebook/bart-large-cnn")
7
- io3 = gr.Interface.load("huggingface/google/pegasus-xsum")
8
 
9
  desc = "Let Hugging Face models summarize texts for you. Note: Shorter articles generate faster summaries. This summarizer uses bart-large-cnn model by Facebook, pegasus by Google and distilbart-cnn-12-6 by Sshleifer. You can compare these models against each other on their performances. Sample Text input is provided!"
10
 
 
2
  import gradio as gr
3
  from gradio.mix import Parallel, Series
4
 
5
+ io1 = gr.Interface.load('huggingface/sshleifer/distilbart-cnn-12-6')
6
+ io2 = gr.Interface.load('huggingface/facebook/bart-large-cnn')
7
+ io3 = gr.Interface.load('huggingface/google/pegasus-xsum')
8
 
9
  desc = "Let Hugging Face models summarize texts for you. Note: Shorter articles generate faster summaries. This summarizer uses bart-large-cnn model by Facebook, pegasus by Google and distilbart-cnn-12-6 by Sshleifer. You can compare these models against each other on their performances. Sample Text input is provided!"
10