John6666 commited on
Commit
ad37494
1 Parent(s): c6c9f0f

Upload 2 files

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -353,7 +353,7 @@ with gr.Blocks(theme='Nymbo/Nymbo_Theme', fill_width=True, css=css) as app:
353
  with gr.Row():
354
  randomize_seed = gr.Checkbox(True, label="Randomize seed")
355
  seed = gr.Slider(label="Seed", minimum=0, maximum=MAX_SEED, step=1, value=0, randomize=True)
356
- lora_scale = gr.Slider(label="LoRA Scale", minimum=0, maximum=1, step=0.01, value=0.95)
357
  with gr.Accordion("External LoRA", open=True):
358
  with gr.Column():
359
  lora_repo_json = gr.JSON(value=[{}] * num_loras, visible=False)
@@ -372,7 +372,7 @@ with gr.Blocks(theme='Nymbo/Nymbo_Theme', fill_width=True, css=css) as app:
372
  with gr.Row():
373
  lora_weights[i] = gr.Dropdown(label=f"LoRA {int(i+1)} Filename", choices=[], info="Optional", value="", allow_custom_value=True)
374
  lora_trigger[i] = gr.Textbox(label=f"LoRA {int(i+1)} Trigger Prompt", lines=1, max_lines=4, value="")
375
- lora_wt[i] = gr.Slider(label=f"LoRA {int(i+1)} Scale", minimum=-2, maximum=2, step=0.01, value=1.00)
376
  with gr.Row():
377
  lora_info[i] = gr.Textbox(label="", info="Example of prompt:", value="", show_copy_button=True, interactive=False, visible=False)
378
  lora_copy[i] = gr.Button(value="Copy example to prompt", visible=False)
@@ -625,7 +625,7 @@ with gr.Blocks(theme='Nymbo/Nymbo_Theme', fill_width=True, css=css) as app:
625
  pg_additional_details, pg_photography_styles, pg_device, pg_photographer, pg_artist, pg_digital_artform,
626
  pg_place, pg_lighting, pg_clothing, pg_composition, pg_pose, pg_background, pg_input_image],
627
  outputs=[gr.Number(label="Used Seed", visible=False), pg_output, gr.Number(visible=False), pg_t5xxl_output, pg_clip_l_output, pg_clip_g_output]
628
- )
629
 
630
  pg_add_caption_button.click(
631
  prompt_generator.add_caption_to_prompt,
 
353
  with gr.Row():
354
  randomize_seed = gr.Checkbox(True, label="Randomize seed")
355
  seed = gr.Slider(label="Seed", minimum=0, maximum=MAX_SEED, step=1, value=0, randomize=True)
356
+ lora_scale = gr.Slider(label="LoRA Scale", minimum=-3, maximum=3, step=0.01, value=0.95)
357
  with gr.Accordion("External LoRA", open=True):
358
  with gr.Column():
359
  lora_repo_json = gr.JSON(value=[{}] * num_loras, visible=False)
 
372
  with gr.Row():
373
  lora_weights[i] = gr.Dropdown(label=f"LoRA {int(i+1)} Filename", choices=[], info="Optional", value="", allow_custom_value=True)
374
  lora_trigger[i] = gr.Textbox(label=f"LoRA {int(i+1)} Trigger Prompt", lines=1, max_lines=4, value="")
375
+ lora_wt[i] = gr.Slider(label=f"LoRA {int(i+1)} Scale", minimum=-3, maximum=3, step=0.01, value=1.00)
376
  with gr.Row():
377
  lora_info[i] = gr.Textbox(label="", info="Example of prompt:", value="", show_copy_button=True, interactive=False, visible=False)
378
  lora_copy[i] = gr.Button(value="Copy example to prompt", visible=False)
 
625
  pg_additional_details, pg_photography_styles, pg_device, pg_photographer, pg_artist, pg_digital_artform,
626
  pg_place, pg_lighting, pg_clothing, pg_composition, pg_pose, pg_background, pg_input_image],
627
  outputs=[gr.Number(label="Used Seed", visible=False), pg_output, gr.Number(visible=False), pg_t5xxl_output, pg_clip_l_output, pg_clip_g_output]
628
+ ) #
629
 
630
  pg_add_caption_button.click(
631
  prompt_generator.add_caption_to_prompt,