blanchon commited on
Commit
fdcaf96
·
1 Parent(s): f257e02
Files changed (1) hide show
  1. app.py +3 -18
app.py CHANGED
@@ -396,22 +396,7 @@ def infer(
396
 
397
 
398
  intro_markdown = r"""
399
- <div>
400
- <div>
401
- <div style="display: flex; justify-content: center; align-items: center; text-align: center; font-size: 40px;">
402
- <b>AnyFurnish</b>
403
- </div>
404
- <br>
405
- <div style="display: flex; justify-content: center; align-items: center; text-align: center;">
406
- <a href="https://github.com/julien-blanchon/"><img src="https://img.shields.io/static/v1?label=Github Report&message=Github&color=green"></a> &ensp;
407
- </div>
408
- <br>
409
- <div style="display: flex; text-align: center; font-size: 14px; padding-right: 300px; padding-left: 300px;">
410
- AnyFurnish is a tool that allows you to generate furniture images using Flux.1 Fill Dev.
411
- You can upload a furniture image and a room image, and the tool will generate a new image with the furniture in the room.
412
- </div>
413
- </div>
414
- </div>
415
  """
416
 
417
  css = r"""
@@ -588,7 +573,7 @@ with gr.Blocks(css=css) as demo:
588
  <div> </div>
589
  <br>
590
  <div>
591
- AnyFurnish examples in pairs of furniture and room images
592
  </div>
593
  </div>
594
  """)
@@ -598,7 +583,7 @@ with gr.Blocks(css=css) as demo:
598
  outputs=[results, seed],
599
  fn=infer,
600
  cache_examples=True,
601
- run_on_click=True,
602
  label="Examples",
603
  examples_per_page=12,
604
  )
 
396
 
397
 
398
  intro_markdown = r"""
399
+ # FurnitureDemo
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
400
  """
401
 
402
  css = r"""
 
573
  <div> </div>
574
  <br>
575
  <div>
576
+ Examples in pairs of furniture and room images
577
  </div>
578
  </div>
579
  """)
 
583
  outputs=[results, seed],
584
  fn=infer,
585
  cache_examples=True,
586
+ cache_mode="eager",
587
  label="Examples",
588
  examples_per_page=12,
589
  )