Spaces:
Runtime error
Runtime error
File size: 476 Bytes
c46253d |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
from transformers import pipeline
import gradio as gr
from gradio.mix import Parallel, Series
io1 = gr.Interface.load('huggingface/sshleifer/distilbart-cnn-12-6')
io2 = gr.Interface.load("huggingface/facebook/bart-large-cnn")
io3 = gr.Interface.load("huggingface/google/pegasus-xsum")
iface = Parallel(io1, io2, io3,
theme='huggingface',
inputs = gr.inputs.Textbox(lines = 10, label="Text"))
iface.launch(inline = False) |