File size: 696 Bytes
920b32a
5929287
 
 
 
 
 
 
920b32a
5a13fe2
920b32a
5929287
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import gradio as gr

title = "BART"

description = "Gradio Demo for BART, to use it, simply add your text, or click one of the examples to load them. Read more at the links below."

article = "<p style='text-align: center'><a href='https://arxiv.org/abs/1910.13461' target='_blank'>BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehension</a></p>"

examples = [
    ["I have a problem with my iphone that needs to be resolved asap!!","urgent, not urgent, phone, tablet, computer"]
]

gr.Interface.load("huggingface/facebook/bart-large-mnli",title=title,description=description,article=article, examples=examples).launch(enable_queue=True)