Spaces:
Runtime error
Runtime error
Commit
·
3526dc3
1
Parent(s):
879e561
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,12 +2,21 @@ import gradio as gr
|
|
| 2 |
|
| 3 |
description = "Multilingual generation with mGPT"
|
| 4 |
title = "Generate your own example"
|
| 5 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
|
| 7 |
interface = gr.Interface.load("huggingface/sberbank-ai/mGPT",
|
| 8 |
description=description,
|
| 9 |
examples=examples,
|
| 10 |
-
|
|
|
|
|
|
|
| 11 |
)
|
| 12 |
|
| 13 |
interface.launch()
|
|
|
|
| 2 |
|
| 3 |
description = "Multilingual generation with mGPT"
|
| 4 |
title = "Generate your own example"
|
| 5 |
+
|
| 6 |
+
examples = [["""English: The vase with flowers is on the table.\nFinnish translation:""", "In May we celebrate "]]
|
| 7 |
+
|
| 8 |
+
article = (
|
| 9 |
+
"<p style='text-align: center'>"
|
| 10 |
+
"<a href='https://github.com/ai-forever/mgpt'>GitHub</a> "
|
| 11 |
+
"</p>"
|
| 12 |
+
)
|
| 13 |
|
| 14 |
interface = gr.Interface.load("huggingface/sberbank-ai/mGPT",
|
| 15 |
description=description,
|
| 16 |
examples=examples,
|
| 17 |
+
thumbnail = 'https://habrastorage.org/r/w1560/getpro/habr/upload_files/26a/fa1/3e1/26afa13e1d1a56f54c7b0356761af7b8.png',
|
| 18 |
+
theme = "peach",
|
| 19 |
+
article = article
|
| 20 |
)
|
| 21 |
|
| 22 |
interface.launch()
|