Spaces:
Runtime error
Runtime error
Ahsen Khaliq
commited on
Commit
•
45285d9
1
Parent(s):
9080dc1
Update app.py
Browse files
app.py
CHANGED
@@ -1,10 +1,8 @@
|
|
1 |
import gradio as gr
|
2 |
-
title = "
|
3 |
-
description = "Gradio Demo for
|
4 |
-
article = "<p style='text-align: center'><a href='https://
|
5 |
examples = [
|
6 |
-
['The tower is 324 metres (1,063 ft) tall,']
|
7 |
-
["The Moon's orbit around Earth has"],
|
8 |
-
["The smooth Borealis basin in the Northern Hemisphere covers 40%"]
|
9 |
]
|
10 |
-
gr.Interface.load("huggingface/
|
|
|
1 |
import gradio as gr
|
2 |
+
title = "Distilbart-CNN"
|
3 |
+
description = "Gradio Demo for DistilBart. 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/sshleifer/distilbart-cnn-12-6' target='_blank'>Huggingface Model</a></p>"
|
5 |
examples = [
|
6 |
+
['The tower is 324 metres (1,063 ft) tall,']
|
|
|
|
|
7 |
]
|
8 |
+
gr.Interface.load("huggingface/sshleifer/distilbart-cnn-12-6", inputs=gr.inputs.Textbox(lines=5, label="Input Text"),title=title,description=description,article=article, examples=examples,enable_queue=True).launch()
|