Fix imports
#45
by
Wok
- opened
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
|
| 178 |
-
|
| 179 |
-
|
|
|
|
|
|
|
| 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>
|