pierreguillou's picture
Update app.py
8d0cf1c
raw
history blame contribute delete
660 Bytes
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()