Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files8 unmodified lines910111213141516210 unmodified lines22722822923023123223315 unmodified lines2492502512522532542558 unmodified linesimport torchfrom diffusers import StableDiffusionXLPipeline, EulerAncestralDiscreteSchedulerDESCRIPTIONz = """## SDXL-LoRA-DLC ⚡"""# 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)# Define the output gallery component firstresult_gallery = gr.Gallery(15 unmodified linescontainer=False,scale=7 # Give more space to prompt)run_button = gr.Button("Generate", scale=1, variant="primary")with gr.Row():model_choice = gr.Dropdown(8 unmodified lines9101112131415210 unmodified lines22622722822923023123215 unmodified lines2482492502512522532548 unmodified linesimport torchfrom diffusers import StableDiffusionXLPipeline, EulerAncestralDiscreteSchedulertitle = """<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.HTML(title)# Define the output gallery component firstresult_gallery = gr.Gallery(15 unmodified linescontainer=False,scale=7 # Give more space to prompt)run_button = gr.Button("Generate Images [SDXL]", scale=1, variant="primary")with gr.Row():model_choice = gr.Dropdown(
app.py+3-4