Spaces:
Runtime error
Runtime error
Commit
·
720917f
1
Parent(s):
7aaa4e3
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,10 @@ 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 style='background-color:
|
|
|
|
|
|
|
6 |
|
7 |
iface = gr.Interface.load('spaces/sberbank-ai/mGPT', title=title, description=description, article=article)
|
8 |
iface.launch()
|
|
|
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 style='font-family: Consolas;color: crimson;background-color: #f1f1f1;padding: 2px;font-size: 105%;'>
|
6 |
+
import gradio as gr
|
7 |
+
gr.Interface.load('spaces/....').launch()
|
8 |
+
</code>"
|
9 |
|
10 |
iface = gr.Interface.load('spaces/sberbank-ai/mGPT', title=title, description=description, article=article)
|
11 |
iface.launch()
|