Ahsen Khaliq commited on
Commit
5929287
·
1 Parent(s): 6b3284e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -4
app.py CHANGED
@@ -1,8 +1,13 @@
1
  import gradio as gr
2
- title = "bart-large"
3
- description = "Gradio Demo for bart-large, to use it, simply add your text, or click one of the examples to load them. Read more at the links below."
4
- article = "<p style='text-align: center'><a href='https://huggingface.co/facebook/bart-large-mnli' target='_blank'>Huggingface Model Page</a></p>"
 
 
 
 
5
  examples = [
6
  ["I have a problem with my iphone that needs to be resolved asap!!","urgent, not urgent, phone, tablet, computer"]
7
  ]
8
- gr.Interface.load("huggingface/facebook/bart-large-mnli",title=title,description=description,article=article, examples=examples,enable_queue=True).launch()
 
 
1
  import gradio as gr
2
+
3
+ title = "BART"
4
+
5
+ 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."
6
+
7
+ 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>"
8
+
9
  examples = [
10
  ["I have a problem with my iphone that needs to be resolved asap!!","urgent, not urgent, phone, tablet, computer"]
11
  ]
12
+
13
+ gr.Interface.load("huggingface/facebook/bart-large-mnli",title=title,description=description,article=article, examples=examples).launch(enable_queue=True)