charleselena
commited on
test lib imports
Browse files- handler.py +3 -3
handler.py
CHANGED
@@ -2,11 +2,11 @@ from typing import Dict, List, Any
|
|
2 |
import base64
|
3 |
from PIL import Image
|
4 |
from io import BytesIO
|
5 |
-
|
6 |
-
from diffusers import StableDiffusionControlNetPipeline, ControlNetModel, StableDiffusionSafetyChecker
|
7 |
# import Safety Checker
|
8 |
# from transformers import AutoProcessor, SafetyChecker
|
9 |
-
|
10 |
|
11 |
import torch
|
12 |
|
|
|
2 |
import base64
|
3 |
from PIL import Image
|
4 |
from io import BytesIO
|
5 |
+
from diffusers import StableDiffusionControlNetPipeline, ControlNetModel
|
6 |
+
#from diffusers import StableDiffusionControlNetPipeline, ControlNetModel, StableDiffusionSafetyChecker
|
7 |
# import Safety Checker
|
8 |
# from transformers import AutoProcessor, SafetyChecker
|
9 |
+
from diffusers.pipelines.stable_diffusion import StableDiffusionSafetyChecker
|
10 |
|
11 |
import torch
|
12 |
|