MicGuest
commited on
Update app.py
Browse files
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(
|
6 |
-
io2 = gr.Interface.load(
|
7 |
-
io3 = gr.Interface.load(
|
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 |
|