vilarin commited on
Commit
938c332
1 Parent(s): 2b0f02c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -4,9 +4,7 @@ from diffusers import DiffusionPipeline, UNet2DConditionModel, LCMScheduler
4
  from huggingface_hub import hf_hub_download
5
  import spaces
6
  from PIL import Image
7
- import os
8
 
9
- CACHE_EXAMPLES = torch.cuda.is_available() and os.getenv("CACHE_EXAMPLES", "1") == "1"
10
 
11
  # Constants
12
  base = "stabilityai/stable-diffusion-xl-base-1.0"
@@ -79,7 +77,7 @@ with gr.Blocks(css=CSS, theme="soft") as demo:
79
  inputs=prompt,
80
  outputs=img,
81
  fn=generate_image,
82
- cache_examples=CACHE_EXAMPLES,
83
  )
84
 
85
  prompt.submit(fn=generate_image,
 
4
  from huggingface_hub import hf_hub_download
5
  import spaces
6
  from PIL import Image
 
7
 
 
8
 
9
  # Constants
10
  base = "stabilityai/stable-diffusion-xl-base-1.0"
 
77
  inputs=prompt,
78
  outputs=img,
79
  fn=generate_image,
80
+ cache_examples=False,
81
  )
82
 
83
  prompt.submit(fn=generate_image,