Spaces:
Runtime error
Runtime error
File size: 660 Bytes
d574c8f 615b9eb f106c66 079abbd e3ce249 8d0cf1c e3ce249 60319b6 e3ce249 |
1 2 3 4 5 6 7 8 9 10 |
import gradio as gr
css="code {font-family: Consolas;color: crimson;background-color: #f1f1f1;padding: 2px;font-size: 105%;}"
title = "How to duplicate an existing Space?"
description = "POC with [spaces/sberbank-ai/mGPT](https://huggingface.co/spaces/sberbank-ai/mGPT)."
article="<p>Here, the minimum code to use in the file <a href='https://huggingface.co/spaces/pierreguillou/duplicate-an-existing-space/blob/main/app.py'>app.py</a>:</p><p><code>import gradio as gr<br>gr.Interface.load('spaces/....').launch()</code></p>"
iface = gr.Interface.load('spaces/sberbank-ai/mGPT', title=title, description=description, article=article, css=css)
iface.launch() |