gunship999 commited on
Commit
9c53eee
ยท
verified ยท
1 Parent(s): 92842e4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -254,8 +254,13 @@ 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
- # ์ˆ˜์ •: ๋งค๊ฐœ๋ณ€์ˆ˜ ์ˆœ์„œ ๋ณ€๊ฒฝ ๋ฐ ์ž…๋ ฅ๊ฐ’ ์ฒ˜๋ฆฌ ๋ฐฉ์‹ ์ˆ˜์ •
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,
 
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(
259
+ m,
260
+ str(txt) if txt is not None else "",
261
+ str(neg) if neg is not None else "",
262
+ h, w, s, c, seed
263
+ ) if m != 'NA' else None,
264
  inputs=[txt_input, neg_input, height, width, steps, cfg, seed],
265
  outputs=[o],
266
  concurrency_limit=None,