DetGC commited on
Commit
033810b
·
verified ·
1 Parent(s): 0af19e2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -190,10 +190,12 @@ with gr.Blocks(theme='NoCrypt/miku@>=1.2.2', fill_width=True, css=CSS) as demo:
190
  interactive=False, width=112, height=112, visible=True, format="png",
191
  show_share_button=False, show_label=False) for _ in range(max_images)]
192
 
 
193
  with gr.Column(scale=2):
194
  gallery2 = gr.Gallery(label="Output", show_download_button=True, elem_classes="gallery",
195
  interactive=False, show_share_button=True, container=True, format="png",
196
  preview=True, object_fit="cover", columns=2, rows=2)
 
197
 
198
  for i, o in enumerate(output2):
199
  img_i = gr.Number(i, visible=False)
@@ -203,7 +205,7 @@ with gr.Blocks(theme='NoCrypt/miku@>=1.2.2', fill_width=True, css=CSS) as demo:
203
  inputs=[img_i, num_images, model_choice2, txt_input2, neg_input2,
204
  height2, width2, steps2, cfg2, seed2], outputs=[o],
205
  concurrency_limit=None, queue=False) # Be sure to delete ", queue=False" when activating the stop button
206
- o.change(add_gallery, [o, model_choice2, gallery2], [gallery2])
207
  #stop_button2.click(lambda: gr.update(interactive=False), None, stop_button2, cancels=[gen_event2])
208
 
209
  #demo.queue(default_concurrency_limit=200, max_size=200)
 
190
  interactive=False, width=112, height=112, visible=True, format="png",
191
  show_share_button=False, show_label=False) for _ in range(max_images)]
192
 
193
+ """
194
  with gr.Column(scale=2):
195
  gallery2 = gr.Gallery(label="Output", show_download_button=True, elem_classes="gallery",
196
  interactive=False, show_share_button=True, container=True, format="png",
197
  preview=True, object_fit="cover", columns=2, rows=2)
198
+ """
199
 
200
  for i, o in enumerate(output2):
201
  img_i = gr.Number(i, visible=False)
 
205
  inputs=[img_i, num_images, model_choice2, txt_input2, neg_input2,
206
  height2, width2, steps2, cfg2, seed2], outputs=[o],
207
  concurrency_limit=None, queue=False) # Be sure to delete ", queue=False" when activating the stop button
208
+ #o.change(add_gallery, [o, model_choice2, gallery2], [gallery2])
209
  #stop_button2.click(lambda: gr.update(interactive=False), None, stop_button2, cancels=[gen_event2])
210
 
211
  #demo.queue(default_concurrency_limit=200, max_size=200)