Spaces:
Runtime error
Runtime error
Commit
·
079abbd
1
Parent(s):
82409e3
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,10 @@
|
|
1 |
import gradio as gr
|
2 |
|
|
|
|
|
3 |
title = "How to duplicate an existing Space?"
|
4 |
description = "POC with [spaces/sberbank-ai/mGPT](https://huggingface.co/spaces/sberbank-ai/mGPT)."
|
5 |
-
article="<code
|
6 |
|
7 |
iface = gr.Interface.load('spaces/sberbank-ai/mGPT', title=title, description=description, article=article)
|
8 |
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="<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)
|
10 |
iface.launch()
|