Spaces:
Runtime error
Runtime error
layerdiffusion
commited on
Commit
•
405c4b4
1
Parent(s):
0a6031f
try fix example bug
Browse files
app.py
CHANGED
@@ -416,12 +416,12 @@ with block:
|
|
416 |
with gr.Row():
|
417 |
dummy_image_for_outputs = gr.Image(visible=False, label='Result')
|
418 |
gr.Examples(
|
419 |
-
fn=lambda *args:
|
420 |
examples=db_examples.foreground_conditioned_examples,
|
421 |
inputs=[
|
422 |
input_fg, prompt, bg_source, image_width, image_height, seed, dummy_image_for_outputs
|
423 |
],
|
424 |
-
outputs=[result_gallery
|
425 |
run_on_click=True, examples_per_page=1024
|
426 |
)
|
427 |
ips = [input_fg, prompt, image_width, image_height, num_samples, seed, steps, a_prompt, n_prompt, cfg, highres_scale, highres_denoise, lowres_denoise, bg_source]
|
|
|
416 |
with gr.Row():
|
417 |
dummy_image_for_outputs = gr.Image(visible=False, label='Result')
|
418 |
gr.Examples(
|
419 |
+
fn=lambda *args: [args[-1]],
|
420 |
examples=db_examples.foreground_conditioned_examples,
|
421 |
inputs=[
|
422 |
input_fg, prompt, bg_source, image_width, image_height, seed, dummy_image_for_outputs
|
423 |
],
|
424 |
+
outputs=[result_gallery],
|
425 |
run_on_click=True, examples_per_page=1024
|
426 |
)
|
427 |
ips = [input_fg, prompt, image_width, image_height, num_samples, seed, steps, a_prompt, n_prompt, cfg, highres_scale, highres_denoise, lowres_denoise, bg_source]
|