multimodalart HF staff commited on
Commit
7ffee86
1 Parent(s): 80e4d04

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -408,7 +408,7 @@ css = '''
408
  #progress .generating{display:none}
409
  .progress-container {width: 100%;height: 30px;background-color: #f0f0f0;border-radius: 15px;overflow: hidden;margin-bottom: 20px}
410
  .progress-bar {height: 100%;background-color: #4f46e5;width: calc(var(--current) / var(--total) * 100%);transition: width 0.5s ease-in-out}
411
- button{height: 100%}
412
  #loaded_loras [data-testid="block-info"]{font-size:80%}
413
  '''
414
 
@@ -422,7 +422,7 @@ with gr.Blocks(theme=gr.themes.Soft(), css=css, delete_cache=(60, 3600)) as app:
422
  with gr.Column(scale=3):
423
  prompt = gr.Textbox(label="Prompt", lines=1, placeholder="Type a prompt after selecting a LoRA")
424
  with gr.Column(scale=1):
425
- generate_button = gr.Button("Generate", variant="primary")
426
  with gr.Row(elem_id="loaded_loras"):
427
  with gr.Column(scale=1, min_width=25):
428
  randomize_button = gr.Button("🎲", variant="secondary", scale=1)
@@ -436,7 +436,7 @@ with gr.Blocks(theme=gr.themes.Soft(), css=css, delete_cache=(60, 3600)) as app:
436
  with gr.Column(scale=2, min_width=50):
437
  lora_scale_1 = gr.Slider(label="LoRA 1 Scale", minimum=0, maximum=3, step=0.01, value=0.95)
438
  with gr.Column(scale=1, min_width=50):
439
- remove_button_1 = gr.Button("Remove")
440
  with gr.Column(scale=8):
441
  with gr.Row():
442
  with gr.Column(scale=0, min_width=50):
@@ -447,7 +447,7 @@ with gr.Blocks(theme=gr.themes.Soft(), css=css, delete_cache=(60, 3600)) as app:
447
  with gr.Column(scale=2, min_width=50):
448
  lora_scale_2 = gr.Slider(label="LoRA 2 Scale", minimum=0, maximum=3, step=0.01, value=0.95)
449
  with gr.Column(scale=1, min_width=50):
450
- remove_button_2 = gr.Button("Remove")
451
  with gr.Row():
452
  with gr.Column():
453
  gallery = gr.Gallery(
 
408
  #progress .generating{display:none}
409
  .progress-container {width: 100%;height: 30px;background-color: #f0f0f0;border-radius: 15px;overflow: hidden;margin-bottom: 20px}
410
  .progress-bar {height: 100%;background-color: #4f46e5;width: calc(var(--current) / var(--total) * 100%);transition: width 0.5s ease-in-out}
411
+ .button_total{height: 100%}
412
  #loaded_loras [data-testid="block-info"]{font-size:80%}
413
  '''
414
 
 
422
  with gr.Column(scale=3):
423
  prompt = gr.Textbox(label="Prompt", lines=1, placeholder="Type a prompt after selecting a LoRA")
424
  with gr.Column(scale=1):
425
+ generate_button = gr.Button("Generate", variant="primary", elem_classes=["button_total"])
426
  with gr.Row(elem_id="loaded_loras"):
427
  with gr.Column(scale=1, min_width=25):
428
  randomize_button = gr.Button("🎲", variant="secondary", scale=1)
 
436
  with gr.Column(scale=2, min_width=50):
437
  lora_scale_1 = gr.Slider(label="LoRA 1 Scale", minimum=0, maximum=3, step=0.01, value=0.95)
438
  with gr.Column(scale=1, min_width=50):
439
+ remove_button_1 = gr.Button("Remove", elem_classes=["button_total"])
440
  with gr.Column(scale=8):
441
  with gr.Row():
442
  with gr.Column(scale=0, min_width=50):
 
447
  with gr.Column(scale=2, min_width=50):
448
  lora_scale_2 = gr.Slider(label="LoRA 2 Scale", minimum=0, maximum=3, step=0.01, value=0.95)
449
  with gr.Column(scale=1, min_width=50):
450
+ remove_button_2 = gr.Button("Remove", elem_classes=["button_total"])
451
  with gr.Row():
452
  with gr.Column():
453
  gallery = gr.Gallery(