File size: 726 Bytes
f4cf6f0 61fe7bf f4cf6f0 7609357 aac22c7 7609357 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
#import library
import gradio as gr
#title of app
title = "🔥 Stable Diffusion 2.1"
#description of app
description = "This space is for generating images from text with the Stable Diffusion 2.1 model!"
#article of app
article = """
<p style='text-align: center'>
<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("Fedra 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() |