multimodalart HF staff commited on
Commit
0d921b6
1 Parent(s): 7238fe3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -372,15 +372,16 @@ with gr.Blocks(theme=gr.themes.Soft(), css=css, delete_cache=(60, 3600)) as app:
372
  with gr.Row():
373
  with gr.Column(scale=3):
374
  prompt = gr.Textbox(label="Prompt", lines=1, placeholder="Type a prompt after selecting a LoRA")
375
- with gr.Column(scale=1, elem_id="gen_column"):
376
- generate_button = gr.Button("Generate", variant="primary", elem_id="gen_btn")
377
- randomize_button = gr.Button("🎲", variant="secondary")
378
  with gr.Row():
379
- with gr.Column():
 
 
380
  selected_info_1 = gr.Markdown("Select a LoRA 1")
381
  lora_scale_1 = gr.Slider(label="LoRA 1 Scale", minimum=0, maximum=3, step=0.01, value=0.95)
382
  remove_button_1 = gr.Button("Remove LoRA 1")
383
- with gr.Column():
384
  selected_info_2 = gr.Markdown("Select a LoRA 2")
385
  lora_scale_2 = gr.Slider(label="LoRA 2 Scale", minimum=0, maximum=3, step=0.01, value=0.95)
386
  remove_button_2 = gr.Button("Remove LoRA 2")
 
372
  with gr.Row():
373
  with gr.Column(scale=3):
374
  prompt = gr.Textbox(label="Prompt", lines=1, placeholder="Type a prompt after selecting a LoRA")
375
+ with gr.Row(scale=1):
376
+ generate_button = gr.Button("Generate", variant="primary")
 
377
  with gr.Row():
378
+ with gr.Column(scale=1):
379
+ randomize_button = gr.Button("🎲", variant="secondary", scale=1)
380
+ with gr.Column(scale=3):
381
  selected_info_1 = gr.Markdown("Select a LoRA 1")
382
  lora_scale_1 = gr.Slider(label="LoRA 1 Scale", minimum=0, maximum=3, step=0.01, value=0.95)
383
  remove_button_1 = gr.Button("Remove LoRA 1")
384
+ with gr.Column(scale=3):
385
  selected_info_2 = gr.Markdown("Select a LoRA 2")
386
  lora_scale_2 = gr.Slider(label="LoRA 2 Scale", minimum=0, maximum=3, step=0.01, value=0.95)
387
  remove_button_2 = gr.Button("Remove LoRA 2")