hlky commited on
Commit
ef06ce9
·
verified ·
1 Parent(s): 5c16fb4

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. handler.py +2 -2
handler.py CHANGED
@@ -8,8 +8,8 @@ from diffusers.utils import export_to_video
8
 
9
  class EndpointHandler:
10
  def __init__(self, path=""):
11
- self.device = "cpu"
12
- self.dtype = torch.float32
13
  self.vae = (
14
  AutoencoderKLHunyuanVideo.from_pretrained(
15
  path, subfolder="vae", torch_dtype=self.dtype
 
8
 
9
  class EndpointHandler:
10
  def __init__(self, path=""):
11
+ self.device = "cuda"
12
+ self.dtype = torch.float16
13
  self.vae = (
14
  AutoencoderKLHunyuanVideo.from_pretrained(
15
  path, subfolder="vae", torch_dtype=self.dtype