Spaces:
Running
Running
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)
|