Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
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",
|
| 819 |
-
["assets/test_1.png", "change the image into Disney Pixar style",
|
| 820 |
-
["assets/test_1.png", "turn to sketch style",
|
| 821 |
-
["assets/test_1.png", "add a sunglasses to the girl",
|
| 822 |
-
["assets/test_1.png", "change the background to a sunset",
|
| 823 |
-
["assets/test_2.jpg", "convert this image into a ink sketch image",
|
| 824 |
-
["assets/test_2.jpg", "add butterfly'",
|
| 825 |
-
["assets/test_2.jpg", "remove the wooden sign'",
|
| 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")
|