Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -34,7 +34,7 @@ MODEL_CONFIG = {
|
|
34 |
"itzzdeep/youtube-thumbnails-sdxl-lora": {
|
35 |
"repo_id": "itzzdeep/youtube-thumbnails-sdxl-lora",
|
36 |
"is_lora": True,
|
37 |
-
"lora_filename": "
|
38 |
"base_model": "stabilityai/stable-diffusion-xl-base-1.0",
|
39 |
"pipeline_class": AutoPipelineForText2Image, # Handles SDXL loading better
|
40 |
"ip_adapter_repo": "h94/IP-Adapter", # SDXL IP-Adapter repo
|
@@ -311,7 +311,7 @@ with gr.Blocks(css=css) as demo:
|
|
311 |
)
|
312 |
prompt_input = gr.Textbox(label="Prompt", lines=3, placeholder="e.g., Epic landscape, dramatic lighting, YouTube thumbnail style")
|
313 |
negative_prompt_input = gr.Textbox(label="Negative Prompt", lines=2, placeholder="e.g., blurry, low quality, text, signature, watermark")
|
314 |
-
reference_image_input = gr.Image(label="Reference Image (for IP-Adapter)", type="pil",
|
315 |
|
316 |
with gr.Accordion("Advanced Settings", open=False):
|
317 |
steps_slider = gr.Slider(label="Inference Steps", minimum=10, maximum=100, value=30, step=1)
|
|
|
34 |
"itzzdeep/youtube-thumbnails-sdxl-lora": {
|
35 |
"repo_id": "itzzdeep/youtube-thumbnails-sdxl-lora",
|
36 |
"is_lora": True,
|
37 |
+
"lora_filename": "youtube-thumbnails-sdxl-lora.safetensors",
|
38 |
"base_model": "stabilityai/stable-diffusion-xl-base-1.0",
|
39 |
"pipeline_class": AutoPipelineForText2Image, # Handles SDXL loading better
|
40 |
"ip_adapter_repo": "h94/IP-Adapter", # SDXL IP-Adapter repo
|
|
|
311 |
)
|
312 |
prompt_input = gr.Textbox(label="Prompt", lines=3, placeholder="e.g., Epic landscape, dramatic lighting, YouTube thumbnail style")
|
313 |
negative_prompt_input = gr.Textbox(label="Negative Prompt", lines=2, placeholder="e.g., blurry, low quality, text, signature, watermark")
|
314 |
+
reference_image_input = gr.Image(label="Reference Image (for IP-Adapter)", type="pil", sources=["upload"])
|
315 |
|
316 |
with gr.Accordion("Advanced Settings", open=False):
|
317 |
steps_slider = gr.Slider(label="Inference Steps", minimum=10, maximum=100, value=30, step=1)
|