multimodalart HF staff commited on
Commit
8f21bb2
1 Parent(s): e204e85

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -0
handler.py CHANGED
@@ -5,6 +5,7 @@ from huggingface_hub import hf_hub_download
5
  from diffusers import DiffusionPipeline
6
  import base64
7
  from io import BytesIO
 
8
 
9
 
10
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
 
5
  from diffusers import DiffusionPipeline
6
  import base64
7
  from io import BytesIO
8
+ from safetensors.torch import load_file
9
 
10
 
11
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")