Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files8 unmodified lines91011121312131415210 unmodified lines22622722823022923023123215 unmodified lines2482492502522512522532548 unmodified linesimport torchfrom diffusers import StableDiffusionXLPipeline, EulerAncestralDiscreteScheduler
DESCRIPTIONz = """## SDXL-LoRA-DLC ⚡"""title = """<h1>SDXL LoRA DLC 🤩</h1>"""
# Ensure assets directory exists if needed for predefined imagesif not os.path.exists("assets"):210 unmodified lines
# --- Gradio UI Definition ---with gr.Blocks(css=css, theme=gr.themes.Soft()) as demo: gr.Markdown(DESCRIPTIONz) gr.HTML(title)
# Define the output gallery component first result_gallery = gr.Gallery(15 unmodified lines container=False, scale=7 # Give more space to prompt ) run_button = gr.Button("Generate", scale=1, variant="primary") run_button = gr.Button("Generate Images [SDXL]", scale=1, variant="primary")
with gr.Row(): model_choice = gr.Dropdown(app.py+3-4