sdafd commited on
Commit
057450b
·
verified ·
1 Parent(s): 5f66cd6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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": "pytorch_lora_weights.safetensors", # Check repo for actual filename if different
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", source="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)
 
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)