Spaces:
Running
Running
gunship999
commited on
Update app.py
Browse files
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(
|
|
|
|
|
|
|
|
|
|
|
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,
|