John6666 commited on
Commit
b7bc3ee
1 Parent(s): 4c4786d

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -77,11 +77,11 @@ with gr.Blocks(theme="NoCrypt/miku@>=1.2.2", fill_width=True, css=css) as demo:
77
  gen_event = gr.on(triggers=[run_button.click, prompt.submit],
78
  fn=lambda i, n, m, t1, t2, l1, l2, l3, l4: infer_fn(m, t1, t2, l1, l2, l3, l4) if (i < n) else None,
79
  inputs=[img_i, image_num, model_name, prompt, neg_prompt, positive_prefix, positive_suffix, negative_prefix, negative_suffix],
80
- outputs=[o], queue=True, show_api=True)
81
  gen_event2 = gr.on(triggers=[random_button.click],
82
  fn=lambda i, n, m, t1, t2, l1, l2, l3, l4: infer_rand_fn(m, t1, t2, l1, l2, l3, l4) if (i < n) else None,
83
  inputs=[img_i, image_num, model_name, prompt, neg_prompt, positive_prefix, positive_suffix, negative_prefix, negative_suffix],
84
- outputs=[o], queue=True, show_api=True)
85
  o.change(save_gallery, [o, results], [results, image_files], show_api=False)
86
  stop_button.click(lambda: gr.update(interactive=False), None, stop_button, cancels=[gen_event, gen_event2], show_api=False)
87
 
 
77
  gen_event = gr.on(triggers=[run_button.click, prompt.submit],
78
  fn=lambda i, n, m, t1, t2, l1, l2, l3, l4: infer_fn(m, t1, t2, l1, l2, l3, l4) if (i < n) else None,
79
  inputs=[img_i, image_num, model_name, prompt, neg_prompt, positive_prefix, positive_suffix, negative_prefix, negative_suffix],
80
+ outputs=[o], queue=True, show_api=False)
81
  gen_event2 = gr.on(triggers=[random_button.click],
82
  fn=lambda i, n, m, t1, t2, l1, l2, l3, l4: infer_rand_fn(m, t1, t2, l1, l2, l3, l4) if (i < n) else None,
83
  inputs=[img_i, image_num, model_name, prompt, neg_prompt, positive_prefix, positive_suffix, negative_prefix, negative_suffix],
84
+ outputs=[o], queue=True, show_api=False)
85
  o.change(save_gallery, [o, results], [results, image_files], show_api=False)
86
  stop_button.click(lambda: gr.update(interactive=False), None, stop_button, cancels=[gen_event, gen_event2], show_api=False)
87