sagar007 commited on
Commit
8791bf4
·
verified ·
1 Parent(s): fdee25f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -10
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
- ["A mystical floating island with cascading waterfalls and ethereal butterflies", 'Illustration Style', 20, 7.5, 42, 'Grayscale', 200, "256x256"],
258
- ["A futuristic cityscape with flying cars and neon lights", 'Line Art', 30, 8.0, 123, 'Bright', 300, "512x512"],
259
- ["A serene Japanese garden with cherry blossoms and a koi pond", 'Hitokomoru Style', 25, 7.0, 789, 'Contrast', 250, "256x256"],
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=True,
 
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__":