Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -251,21 +251,17 @@ with gr.Blocks(css=HTML_TEMPLATE) as demo:
|
|
251 |
inputs=[text, style, inference_step, guidance_scale, seed, guidance_method, loss_scale, image_size],
|
252 |
outputs=[output_image, output_image_guided]
|
253 |
)
|
254 |
-
|
255 |
-
gr.Examples(
|
256 |
examples=[
|
257 |
-
["
|
258 |
-
["
|
259 |
-
["
|
260 |
-
["An abstract representation of human emotions", 'Marc Allante', 35, 8.5, 456, 'Symmetry', 400, "512x512"],
|
261 |
-
["A epic fantasy battle scene with dragons and wizards", 'Midjourney', 40, 9.0, 987, 'Saturation', 500, "512x512"],
|
262 |
-
["A elegant princess in traditional Chinese Hanfu dress", 'Hanfu Anime', 22, 7.2, 654, 'Grayscale', 180, "256x256"],
|
263 |
-
["A whimsical bird's eye view of a colorful theme park", 'Birb Style', 28, 7.8, 321, 'Bright', 350, "512x512"],
|
264 |
],
|
265 |
inputs=[text, style, inference_step, guidance_scale, seed, guidance_method, loss_scale, image_size],
|
266 |
outputs=[output_image, output_image_guided],
|
267 |
fn=inference,
|
268 |
-
cache_examples=
|
|
|
269 |
)
|
270 |
|
271 |
if __name__ == "__main__":
|
|
|
251 |
inputs=[text, style, inference_step, guidance_scale, seed, guidance_method, loss_scale, image_size],
|
252 |
outputs=[output_image, output_image_guided]
|
253 |
)
|
254 |
+
gr.Examples(
|
|
|
255 |
examples=[
|
256 |
+
["Floating island with waterfalls", 'Illustration Style', 10, 7.5, 42, 'Grayscale', 200, "256x256"],
|
257 |
+
["Futuristic city with neon lights", 'Line Art', 10, 8.0, 123, 'Bright', 300, "256x256"],
|
258 |
+
["Japanese garden with cherry blossoms", 'Hitokomoru Style', 10, 7.0, 789, 'Contrast', 250, "256x256"],
|
|
|
|
|
|
|
|
|
259 |
],
|
260 |
inputs=[text, style, inference_step, guidance_scale, seed, guidance_method, loss_scale, image_size],
|
261 |
outputs=[output_image, output_image_guided],
|
262 |
fn=inference,
|
263 |
+
cache_examples=False, # Disable caching
|
264 |
+
|
265 |
)
|
266 |
|
267 |
if __name__ == "__main__":
|