Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -9,8 +9,7 @@ import spaces
|
|
9 |
import torch
|
10 |
from diffusers import StableDiffusionXLPipeline, EulerAncestralDiscreteScheduler
|
11 |
|
12 |
-
|
13 |
-
"""
|
14 |
|
15 |
# Ensure assets directory exists if needed for predefined images
|
16 |
if not os.path.exists("assets"):
|
@@ -227,7 +226,7 @@ def load_predefined_images():
|
|
227 |
|
228 |
# --- Gradio UI Definition ---
|
229 |
with gr.Blocks(css=css, theme=gr.themes.Soft()) as demo:
|
230 |
-
gr.
|
231 |
|
232 |
# Define the output gallery component first
|
233 |
result_gallery = gr.Gallery(
|
@@ -249,7 +248,7 @@ with gr.Blocks(css=css, theme=gr.themes.Soft()) as demo:
|
|
249 |
container=False,
|
250 |
scale=7 # Give more space to prompt
|
251 |
)
|
252 |
-
run_button = gr.Button("Generate", scale=1, variant="primary")
|
253 |
|
254 |
with gr.Row():
|
255 |
model_choice = gr.Dropdown(
|
|
|
9 |
import torch
|
10 |
from diffusers import StableDiffusionXLPipeline, EulerAncestralDiscreteScheduler
|
11 |
|
12 |
+
title = """<h1>SDXL LoRA DLC 🤩</h1>"""
|
|
|
13 |
|
14 |
# Ensure assets directory exists if needed for predefined images
|
15 |
if not os.path.exists("assets"):
|
|
|
226 |
|
227 |
# --- Gradio UI Definition ---
|
228 |
with gr.Blocks(css=css, theme=gr.themes.Soft()) as demo:
|
229 |
+
gr.HTML(title)
|
230 |
|
231 |
# Define the output gallery component first
|
232 |
result_gallery = gr.Gallery(
|
|
|
248 |
container=False,
|
249 |
scale=7 # Give more space to prompt
|
250 |
)
|
251 |
+
run_button = gr.Button("Generate Images [SDXL]", scale=1, variant="primary")
|
252 |
|
253 |
with gr.Row():
|
254 |
model_choice = gr.Dropdown(
|