sergeipetrov
commited on
Commit
•
757691d
1
Parent(s):
58c4864
Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
@@ -8,7 +8,7 @@ import torch
|
|
8 |
|
9 |
class EndpointHandler():
|
10 |
def __init__(self, path=""):
|
11 |
-
self.pipeline = AutoPipelineForInpainting.from_pretrained("diffusers/stable-diffusion-xl-1.0-inpainting-0.1", torch_dtype=torch.float16, variant="fp16")
|
12 |
|
13 |
def __call__(self, data: Dict[str, Any]):
|
14 |
"""
|
|
|
8 |
|
9 |
class EndpointHandler():
|
10 |
def __init__(self, path=""):
|
11 |
+
self.pipeline = AutoPipelineForInpainting.from_pretrained("diffusers/stable-diffusion-xl-1.0-inpainting-0.1", torch_dtype=torch.float16, variant="fp16").to("cuda")
|
12 |
|
13 |
def __call__(self, data: Dict[str, Any]):
|
14 |
"""
|