layerdiffusion commited on
Commit
405c4b4
1 Parent(s): 0a6031f

try fix example bug

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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: ([args[-1]], None),
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, output_bg],
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]