MicGuest
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ 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("huggingface/facebook/bart-large-cnn")
|
7 |
io3 = gr.Interface.load("huggingface/google/pegasus-xsum")
|
8 |
|
@@ -41,4 +41,4 @@ iface = Parallel(io1, io2, io3,
|
|
41 |
examples=sample, #replace "sample" with directory to let gradio scan through those files and give you the text
|
42 |
inputs = gr.inputs.Textbox(lines = 10, label="Text"))
|
43 |
|
44 |
-
iface.launch(inline = False
|
|
|
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 |
|
|
|
41 |
examples=sample, #replace "sample" with directory to let gradio scan through those files and give you the text
|
42 |
inputs = gr.inputs.Textbox(lines = 10, label="Text"))
|
43 |
|
44 |
+
iface.launch(inline = False)
|