Files changed (1) hide show
  1. README.md +5 -3
README.md CHANGED
@@ -174,8 +174,10 @@ Use the code below to get started with the model.
174
  <summary> Click to expand </summary>
175
 
176
  ```python
177
- from transformers import AutoProcessor, SafetyChecker
178
- processor = AutoProcessor.from_pretrained("CompVis/stable-diffusion-safety-checker")
179
- safety_checker = SafetyChecker.from_pretrained("CompVis/stable-diffusion-safety-checker")
 
 
180
  ```
181
  </details>
 
174
  <summary> Click to expand </summary>
175
 
176
  ```python
177
+ from transformers import AutoFeatureExtractor
178
+ from diffusers.pipelines.stable_diffusion.safety_checker import StableDiffusionSafetyChecker
179
+
180
+ processor = AutoFeatureExtractor.from_pretrained("CompVis/stable-diffusion-safety-checker")
181
+ safety_checker = StableDiffusionSafetyChecker.from_pretrained("CompVis/stable-diffusion-safety-checker")
182
  ```
183
  </details>