multimodalart HF staff commited on
Commit
ce701f7
·
verified ·
1 Parent(s): 3188dfd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -557,7 +557,6 @@ with gr.Blocks(css="custom.css") as demo:
557
  fn=load_custom_lora,
558
  inputs=[custom_model],
559
  outputs=[custom_model_card, custom_model_card, custom_model_button, custom_loaded_lora, gallery, prompt_title],
560
- queue=False
561
  )
562
  custom_model_button.click(
563
  fn=remove_custom_lora,
@@ -567,7 +566,6 @@ with gr.Blocks(css="custom.css") as demo:
567
  fn=update_selection,
568
  inputs=[gr_sdxl_loras, face_strength, image_strength, weight, depth_control_scale, negative],
569
  outputs=[prompt_title, prompt, face_strength, image_strength, weight, depth_control_scale, negative, selected_state],
570
- queue=False,
571
  show_progress=False
572
  )
573
  #new_gallery.select(
@@ -580,7 +578,6 @@ with gr.Blocks(css="custom.css") as demo:
580
  prompt.submit(
581
  fn=check_selected,
582
  inputs=[selected_state, custom_loaded_lora],
583
- queue=False,
584
  show_progress=False
585
  ).success(
586
  fn=run_lora,
@@ -590,7 +587,6 @@ with gr.Blocks(css="custom.css") as demo:
590
  button.click(
591
  fn=check_selected,
592
  inputs=[selected_state, custom_loaded_lora],
593
- queue=False,
594
  show_progress=False
595
  ).success(
596
  fn=run_lora,
@@ -598,6 +594,7 @@ with gr.Blocks(css="custom.css") as demo:
598
  outputs=[result, share_group],
599
  )
600
  share_button.click(None, [], [], js=share_js)
601
- demo.load(fn=classify_gallery, inputs=[gr_sdxl_loras], outputs=[gallery, gr_sdxl_loras], queue=False, js=js)
602
- demo.queue(max_size=20)
 
603
  demo.launch(share=True)
 
557
  fn=load_custom_lora,
558
  inputs=[custom_model],
559
  outputs=[custom_model_card, custom_model_card, custom_model_button, custom_loaded_lora, gallery, prompt_title],
 
560
  )
561
  custom_model_button.click(
562
  fn=remove_custom_lora,
 
566
  fn=update_selection,
567
  inputs=[gr_sdxl_loras, face_strength, image_strength, weight, depth_control_scale, negative],
568
  outputs=[prompt_title, prompt, face_strength, image_strength, weight, depth_control_scale, negative, selected_state],
 
569
  show_progress=False
570
  )
571
  #new_gallery.select(
 
578
  prompt.submit(
579
  fn=check_selected,
580
  inputs=[selected_state, custom_loaded_lora],
 
581
  show_progress=False
582
  ).success(
583
  fn=run_lora,
 
587
  button.click(
588
  fn=check_selected,
589
  inputs=[selected_state, custom_loaded_lora],
 
590
  show_progress=False
591
  ).success(
592
  fn=run_lora,
 
594
  outputs=[result, share_group],
595
  )
596
  share_button.click(None, [], [], js=share_js)
597
+ demo.load(fn=classify_gallery, inputs=[gr_sdxl_loras], outputs=[gallery, gr_sdxl_loras], js=js)
598
+
599
+ demo.queue(default_concurrency_limit=None)
600
  demo.launch(share=True)