cai-qi commited on
Commit
bf37db9
·
verified ·
1 Parent(s): 28fe89a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -815,20 +815,20 @@ def create_ui():
815
  # Examples
816
  gr.Examples(
817
  examples=[
818
- ["assets/test_1.png", "convert the image into a Ghibli style",3, 5, 4],
819
- ["assets/test_1.png", "change the image into Disney Pixar style",3, 5, 4],
820
- ["assets/test_1.png", "turn to sketch style",3, 5, 4],
821
- ["assets/test_1.png", "add a sunglasses to the girl",3, 5, 2],
822
- ["assets/test_1.png", "change the background to a sunset",3, 5, 2],
823
- ["assets/test_2.jpg", "convert this image into a ink sketch image",3, 5, 2],
824
- ["assets/test_2.jpg", "add butterfly'",3, 5, 2],
825
- ["assets/test_2.jpg", "remove the wooden sign'",3, 5, 2],
826
  ],
827
  inputs=[input_image, instruction, seed, guidance_scale, image_guidance_scale],
828
  outputs=[output_image, image_info, instruction],
829
  fn=refine_and_generate,
830
  cache_examples=True,
831
- cache_mode = "lazy"
832
  )
833
 
834
  logger.info("Gradio UI created successfully")
 
815
  # Examples
816
  gr.Examples(
817
  examples=[
818
+ ["assets/test_1.png", "convert the image into a Ghibli style",82706, 5, 4],
819
+ ["assets/test_1.png", "change the image into Disney Pixar style",82706, 5, 4],
820
+ ["assets/test_1.png", "turn to sketch style",82706, 5, 4],
821
+ ["assets/test_1.png", "add a sunglasses to the girl",82706, 5, 2],
822
+ ["assets/test_1.png", "change the background to a sunset",82706, 5, 2],
823
+ ["assets/test_2.jpg", "convert this image into a ink sketch image",82706, 5, 2],
824
+ ["assets/test_2.jpg", "add butterfly'",82706, 5, 2],
825
+ ["assets/test_2.jpg", "remove the wooden sign'",82706, 5, 2],
826
  ],
827
  inputs=[input_image, instruction, seed, guidance_scale, image_guidance_scale],
828
  outputs=[output_image, image_info, instruction],
829
  fn=refine_and_generate,
830
  cache_examples=True,
831
+ # cache_mode = "lazy"
832
  )
833
 
834
  logger.info("Gradio UI created successfully")