pierreguillou's picture
Update app.py
44b04c6
raw
history blame
494 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="<code>import gradio as gr<br>gr.Interface.load('spaces/....').launch()</code>"
iface = gr.Interface.load('spaces/sberbank-ai/mGPT', title=title, description=description, article=article, css=css)
iface.launch()