Spaces:
Runtime error
Runtime error
pierreguillou
commited on
Commit
·
f106c66
1
Parent(s):
fa543b7
Update app.py
Browse files
app.py
CHANGED
@@ -1,10 +1,10 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
css="
|
4 |
|
5 |
title = "How to duplicate an existing Space?"
|
6 |
description = "POC with [spaces/sberbank-ai/mGPT](https://huggingface.co/spaces/sberbank-ai/mGPT)."
|
7 |
-
article="<code>import gradio as gr<br>gr.Interface.load('spaces/....').launch()</code>"
|
8 |
|
9 |
iface = gr.Interface.load('spaces/sberbank-ai/mGPT', title=title, description=description, article=article, css=css)
|
10 |
iface.launch()
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
css="code {font-family: Consolas;color: crimson;background-color: #f1f1f1;padding: 2px;font-size: 105%;}"
|
4 |
|
5 |
title = "How to duplicate an existing Space?"
|
6 |
description = "POC with [spaces/sberbank-ai/mGPT](https://huggingface.co/spaces/sberbank-ai/mGPT)."
|
7 |
+
article="<p>Here, the minimum code to use in the file <code>app.py</code>:</p><p><code>import gradio as gr<br>gr.Interface.load('spaces/....').launch()</code></p>"
|
8 |
|
9 |
iface = gr.Interface.load('spaces/sberbank-ai/mGPT', title=title, description=description, article=article, css=css)
|
10 |
iface.launch()
|