PeterL1n commited on
Commit
e9034bb
1 Parent(s): dd0e9d5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -4,10 +4,9 @@ from diffusers import StableDiffusionXLPipeline, EulerDiscreteScheduler
4
  from huggingface_hub import hf_hub_download
5
  from safetensors.torch import load_file
6
  import spaces
7
- import os
8
  from PIL import Image
9
 
10
- SAFETY_CHECKER = os.environ.get("SAFETY_CHECKER", "0") == "1"
11
 
12
  # Constants
13
  base = "stabilityai/stable-diffusion-xl-base-1.0"
 
4
  from huggingface_hub import hf_hub_download
5
  from safetensors.torch import load_file
6
  import spaces
 
7
  from PIL import Image
8
 
9
+ SAFETY_CHECKER = True
10
 
11
  # Constants
12
  base = "stabilityai/stable-diffusion-xl-base-1.0"