gunship999 commited on
Commit
92842e4
โ€ข
1 Parent(s): b163db6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -254,19 +254,20 @@ with gr.Blocks(theme='NoCrypt/miku@>=1.2.2', fill_width=True, css=CSS) as demo:
254
  for m, o in zip(current_models, output):
255
  gen_event = gr.on(
256
  triggers=[gen_button.click, txt_input.submit],
257
- # ์ˆ˜์ •๋œ ๋ถ€๋ถ„: m.value ๋Œ€์‹  m ์ง์ ‘ ์‚ฌ์šฉ
258
- fn=lambda m=m, *args: gen_fn(m, *args) if m != 'NA' else None,
259
  inputs=[txt_input, neg_input, height, width, steps, cfg, seed],
260
  outputs=[o],
261
  concurrency_limit=None,
262
  queue=False
263
  )
264
  o.change(
265
- # ์ˆ˜์ •๋œ ๋ถ€๋ถ„: m.value ๋Œ€์‹  m ์ง์ ‘ ์‚ฌ์šฉ
266
  fn=lambda img, g, m=m: add_gallery(img, m, g) if m != 'NA' else g,
267
  inputs=[o, gallery],
268
  outputs=[gallery]
269
  )
270
 
271
 
 
 
272
  demo.launch(show_api=False, max_threads=400)
 
254
  for m, o in zip(current_models, output):
255
  gen_event = gr.on(
256
  triggers=[gen_button.click, txt_input.submit],
257
+ # ์ˆ˜์ •: ๋งค๊ฐœ๋ณ€์ˆ˜ ์ˆœ์„œ ๋ณ€๊ฒฝ ๋ฐ ์ž…๋ ฅ๊ฐ’ ์ฒ˜๋ฆฌ ๋ฐฉ์‹ ์ˆ˜์ •
258
+ fn=lambda txt, neg, h, w, s, c, seed, m=m: gen_fn(m, txt, neg, h, w, s, c, seed) if m != 'NA' else None,
259
  inputs=[txt_input, neg_input, height, width, steps, cfg, seed],
260
  outputs=[o],
261
  concurrency_limit=None,
262
  queue=False
263
  )
264
  o.change(
 
265
  fn=lambda img, g, m=m: add_gallery(img, m, g) if m != 'NA' else g,
266
  inputs=[o, gallery],
267
  outputs=[gallery]
268
  )
269
 
270
 
271
+
272
+
273
  demo.launch(show_api=False, max_threads=400)