DetGC commited on
Commit
77202c1
·
verified ·
1 Parent(s): 033810b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -188,7 +188,7 @@ with gr.Blocks(theme='NoCrypt/miku@>=1.2.2', fill_width=True, css=CSS) as demo:
188
  with gr.Row():
189
  output2 = [gr.Image(label='', show_download_button=True, elem_classes="output",
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):
@@ -197,6 +197,8 @@ with gr.Blocks(theme='NoCrypt/miku@>=1.2.2', fill_width=True, css=CSS) as demo:
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)
202
  num_images.change(lambda i, n: gr.update(visible = (i < n)), [img_i, num_images], o, queue=False)
@@ -207,6 +209,7 @@ with gr.Blocks(theme='NoCrypt/miku@>=1.2.2', fill_width=True, css=CSS) as demo:
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)
212
  demo.launch(show_api=False, max_threads=400)
 
188
  with gr.Row():
189
  output2 = [gr.Image(label='', show_download_button=True, elem_classes="output",
190
  interactive=False, width=112, height=112, visible=True, format="png",
191
+ show_share_button=False, show_label=True) for _ in range(max_images)]
192
 
193
  """
194
  with gr.Column(scale=2):
 
197
  preview=True, object_fit="cover", columns=2, rows=2)
198
  """
199
 
200
+
201
+ """
202
  for i, o in enumerate(output2):
203
  img_i = gr.Number(i, visible=False)
204
  num_images.change(lambda i, n: gr.update(visible = (i < n)), [img_i, num_images], o, queue=False)
 
209
  concurrency_limit=None, queue=False) # Be sure to delete ", queue=False" when activating the stop button
210
  #o.change(add_gallery, [o, model_choice2, gallery2], [gallery2])
211
  #stop_button2.click(lambda: gr.update(interactive=False), None, stop_button2, cancels=[gen_event2])
212
+ """
213
 
214
  #demo.queue(default_concurrency_limit=200, max_size=200)
215
  demo.launch(show_api=False, max_threads=400)