Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,3 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
import gradio as gr
|
| 4 |
import torch
|
| 5 |
from diffusers import StableDiffusionXLPipeline, AutoencoderKL, KDPM2AncestralDiscreteScheduler
|
|
@@ -86,13 +84,13 @@ examples = [
|
|
| 86 |
# Gradio Interface
|
| 87 |
|
| 88 |
with gr.Blocks(css=CSS, js=JS, theme="soft") as demo:
|
| 89 |
-
gr.HTML("<h1><center>
|
| 90 |
gr.HTML("<p><center><a href='https://huggingface.co/Corcelio/mobius'>mobius</a> text-to-image generation</center><br><center>Multi-Languages. Adding default prompts to enhance.</center></p>")
|
| 91 |
with gr.Group():
|
| 92 |
with gr.Row():
|
| 93 |
prompt = gr.Textbox(label='Enter Your Prompt', value="best quality, HD, aesthetic", scale=6)
|
| 94 |
submit = gr.Button(scale=1, variant='primary')
|
| 95 |
-
img = gr.Image(label='
|
| 96 |
with gr.Accordion("Advanced Options", open=False):
|
| 97 |
with gr.Row():
|
| 98 |
negative = gr.Textbox(label="Negative prompt", value="low quality")
|
|
|
|
|
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import torch
|
| 3 |
from diffusers import StableDiffusionXLPipeline, AutoencoderKL, KDPM2AncestralDiscreteScheduler
|
|
|
|
| 84 |
# Gradio Interface
|
| 85 |
|
| 86 |
with gr.Blocks(css=CSS, js=JS, theme="soft") as demo:
|
| 87 |
+
gr.HTML("<h1><center>SD3M🦄</center></h1>")
|
| 88 |
gr.HTML("<p><center><a href='https://huggingface.co/Corcelio/mobius'>mobius</a> text-to-image generation</center><br><center>Multi-Languages. Adding default prompts to enhance.</center></p>")
|
| 89 |
with gr.Group():
|
| 90 |
with gr.Row():
|
| 91 |
prompt = gr.Textbox(label='Enter Your Prompt', value="best quality, HD, aesthetic", scale=6)
|
| 92 |
submit = gr.Button(scale=1, variant='primary')
|
| 93 |
+
img = gr.Image(label='SD3M Generated Image')
|
| 94 |
with gr.Accordion("Advanced Options", open=False):
|
| 95 |
with gr.Row():
|
| 96 |
negative = gr.Textbox(label="Negative prompt", value="low quality")
|