multimodalart HF staff commited on
Commit
48a9f62
1 Parent(s): 984d7c5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -446,6 +446,8 @@ css = '''
446
  .progress-bar {height: 100%;background-color: #4f46e5;width: calc(var(--current) / var(--total) * 100%);transition: width 0.5s ease-in-out}
447
  .button_total{height: 100%}
448
  #loaded_loras [data-testid="block-info"]{font-size:80%}
 
 
449
  '''
450
 
451
  with gr.Blocks(theme=gr.themes.Soft(), css=css, delete_cache=(60, 3600)) as app:
@@ -484,10 +486,10 @@ with gr.Blocks(theme=gr.themes.Soft(), css=css, delete_cache=(60, 3600)) as app:
484
  remove_button_2 = gr.Button("Remove", size="sm")
485
  with gr.Row():
486
  with gr.Column():
487
- with gr.Group():
488
  with gr.Row():
489
- custom_lora = gr.Textbox(label="Custom LoRA", info="LoRA Hugging Face path or *.safetensors public URL", placeholder="multimodalart/vintage-ads-flux")
490
- add_custom_lora_button = gr.Button("Add Custom LoRA")
491
  remove_custom_lora_button = gr.Button("Remove Custom LoRA", visible=False)
492
  gr.Markdown("[Check the list of FLUX LoRAs](https://huggingface.co/models?other=base_model:adapter:black-forest-labs/FLUX.1-dev)", elem_id="lora_list")
493
  gallery = gr.Gallery(
 
446
  .progress-bar {height: 100%;background-color: #4f46e5;width: calc(var(--current) / var(--total) * 100%);transition: width 0.5s ease-in-out}
447
  .button_total{height: 100%}
448
  #loaded_loras [data-testid="block-info"]{font-size:80%}
449
+ #custom_lora_structure{background: var(--block-background-fill)}
450
+ #custom_lora_btn{margin-top: auto;margin-bottom: 11px}
451
  '''
452
 
453
  with gr.Blocks(theme=gr.themes.Soft(), css=css, delete_cache=(60, 3600)) as app:
 
486
  remove_button_2 = gr.Button("Remove", size="sm")
487
  with gr.Row():
488
  with gr.Column():
489
+ with gr.Group(elem_id="custom_lora_structure"):
490
  with gr.Row():
491
+ custom_lora = gr.Textbox(label="Custom LoRA", info="LoRA Hugging Face path or *.safetensors public URL", placeholder="multimodalart/vintage-ads-flux", scale=3, min_width=150)
492
+ add_custom_lora_button = gr.Button("Add Custom LoRA", elem_id="custom_lora_btn", scale=2, min_width=150)
493
  remove_custom_lora_button = gr.Button("Remove Custom LoRA", visible=False)
494
  gr.Markdown("[Check the list of FLUX LoRAs](https://huggingface.co/models?other=base_model:adapter:black-forest-labs/FLUX.1-dev)", elem_id="lora_list")
495
  gallery = gr.Gallery(