John6666 commited on
Commit
e3b569b
1 Parent(s): 03afe05

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -446,6 +446,7 @@ with gr.Blocks(theme='Nymbo/Nymbo_Theme', fill_width=True, css=css) as app:
446
  outputs=[result],
447
  queue=False,
448
  show_api=False,
 
449
  ).success(
450
  fn=run_lora,
451
  inputs=[prompt, cfg_scale, steps, selected_index, randomize_seed, seed, width, height,
@@ -463,6 +464,7 @@ with gr.Blocks(theme='Nymbo/Nymbo_Theme', fill_width=True, css=css) as app:
463
  outputs=[result],
464
  queue=True,
465
  show_api=False,
 
466
  ).then(get_t2i_model_info, [model_name], [model_info], queue=False, show_api=False)
467
  prompt_enhance.click(enhance_prompt, [prompt], [prompt], queue=False, show_api=False)
468
 
 
446
  outputs=[result],
447
  queue=False,
448
  show_api=False,
449
+ trigger_mode="once",
450
  ).success(
451
  fn=run_lora,
452
  inputs=[prompt, cfg_scale, steps, selected_index, randomize_seed, seed, width, height,
 
464
  outputs=[result],
465
  queue=True,
466
  show_api=False,
467
+ trigger_mode="once",
468
  ).then(get_t2i_model_info, [model_name], [model_info], queue=False, show_api=False)
469
  prompt_enhance.click(enhance_prompt, [prompt], [prompt], queue=False, show_api=False)
470