|
|
|
import gradio as gr |
|
|
|
|
|
title = "🔥 Stable Diffusion 2.1" |
|
|
|
|
|
description = "This space is for generating images from text with the Stable Diffusion 2.1 model!" |
|
|
|
|
|
article = """ |
|
<p style='text-align: center'> |
|
<a href='https://hf.co/CofAI' target='_blank'>CofAI Group</a> |
|
</p> |
|
<p style='text-align: right'> |
|
<a href='https://hf.co/CofAI' target='_blank'>CofAI Group</a> |
|
</p> |
|
""" |
|
|
|
theme = gr.themes.Monochrome( |
|
primary_hue="indigo", |
|
secondary_hue="blue", |
|
neutral_hue="slate", |
|
radius_size=gr.themes.sizes.radius_sm, |
|
font=[gr.themes.GoogleFont("Open Sans"), "ui-sans-serif", "system-ui", "sans-serif"], |
|
) |
|
|
|
gr.Interface.load("models/stabilityai/stable-diffusion-2-1", title=title, description=description, article=article, theme=theme).launch() |