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,