Upload folder using huggingface_hub
Browse files- 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 = "
|
12 |
-
self.dtype = torch.
|
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
|