Spaces:
Running
Running
gunship999
commited on
Commit
โข
92842e4
1
Parent(s):
b163db6
Update app.py
Browse files
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 |
-
#
|
258 |
-
fn=lambda m=m
|
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)
|