gunship999 commited on
Commit
ced6b6e
·
verified ·
1 Parent(s): e3e0d3b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -251,6 +251,7 @@ with gr.Blocks(theme='NoCrypt/miku@>=1.2.2', fill_width=True, css=CSS) as demo:
251
  model_choice.change(extend_choices, model_choice, current_models)
252
  random_button.click(random_choices, None, model_choice)
253
 
 
254
  for m, o in zip(current_models, output):
255
  gen_event = gr.on(
256
  triggers=[gen_button.click, txt_input.submit],
@@ -261,9 +262,11 @@ with gr.Blocks(theme='NoCrypt/miku@>=1.2.2', fill_width=True, css=CSS) as demo:
261
  queue=False
262
  )
263
  o.change(
264
- fn=lambda img, m=m, g: add_gallery(img, m.value, g) if m.value != 'NA' else g,
265
  inputs=[o, gallery],
266
  outputs=[gallery]
267
  )
 
 
268
 
269
  demo.launch(show_api=False, max_threads=400)
 
251
  model_choice.change(extend_choices, model_choice, current_models)
252
  random_button.click(random_choices, None, model_choice)
253
 
254
+
255
  for m, o in zip(current_models, output):
256
  gen_event = gr.on(
257
  triggers=[gen_button.click, txt_input.submit],
 
262
  queue=False
263
  )
264
  o.change(
265
+ fn=lambda img, g, m=m: add_gallery(img, m.value, g) if m.value != 'NA' else g,
266
  inputs=[o, gallery],
267
  outputs=[gallery]
268
  )
269
+
270
+
271
 
272
  demo.launch(show_api=False, max_threads=400)