Spaces:
Runtime error
Runtime error
Ahsen Khaliq
commited on
Commit
·
5929287
1
Parent(s):
6b3284e
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,13 @@
|
|
1 |
import gradio as gr
|
2 |
-
|
3 |
-
|
4 |
-
|
|
|
|
|
|
|
|
|
5 |
examples = [
|
6 |
["I have a problem with my iphone that needs to be resolved asap!!","urgent, not urgent, phone, tablet, computer"]
|
7 |
]
|
8 |
-
|
|
|
|
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)
|