Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -257,16 +257,19 @@ with gr.Blocks(css=HTML_TEMPLATE) as demo:
|
|
| 257 |
Thank you for your patience!
|
| 258 |
""")
|
| 259 |
|
| 260 |
-
|
| 261 |
-
|
| 262 |
-
|
| 263 |
-
|
| 264 |
-
|
| 265 |
-
|
| 266 |
-
|
| 267 |
-
|
| 268 |
-
|
| 269 |
-
|
|
|
|
|
|
|
|
|
|
| 270 |
)
|
| 271 |
|
| 272 |
if __name__ == "__main__":
|
|
|
|
| 257 |
Thank you for your patience!
|
| 258 |
""")
|
| 259 |
|
| 260 |
+
r.Examples(
|
| 261 |
+
examples=[
|
| 262 |
+
["Floating island with waterfalls", 'Illustration Style', 50, 7.5, 42, 'Grayscale', 200, "256x256"],
|
| 263 |
+
["Futuristic city with neon lights", 'Line Art', 30, 8.0, 123, 'Bright', 300, "256x256"],
|
| 264 |
+
["Japanese garden with cherry blossoms", 'Hitokomoru Style', 40, 7.0, 789, 'Contrast', 250, "256x256"],
|
| 265 |
+
],
|
| 266 |
+
inputs=[text, style, inference_step, guidance_scale, seed, guidance_method, loss_scale, image_size],
|
| 267 |
+
outputs=[output_image, output_image_guided],
|
| 268 |
+
fn=inference,
|
| 269 |
+
cache_examples=True,
|
| 270 |
+
examples_per_page=5,
|
| 271 |
+
cache_timeout=360 # Increase this value (in seconds) as needed
|
| 272 |
+
|
| 273 |
)
|
| 274 |
|
| 275 |
if __name__ == "__main__":
|