Spaces:
Runtime error
Runtime error
layerdiffusion
commited on
Commit
•
3072485
1
Parent(s):
405c4b4
try fix example bug again
Browse files- app.py +2 -2
- imgs/dummy.png +3 -0
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]],
|
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]], "imgs/dummy.png"],
|
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]
|
imgs/dummy.png
ADDED
![]() |
Git LFS Details
|