asoderznik
commited on
Commit
•
bdb5d3a
1
Parent(s):
dcd85b1
Update handler.py
Browse files- handler.py +2 -2
handler.py
CHANGED
@@ -23,8 +23,8 @@ class EndpointHandler():
|
|
23 |
def __init__(self, path=""):
|
24 |
self.path = path
|
25 |
# load the optimized model
|
26 |
-
|
27 |
-
self.pipe = DiffusionPipeline.from_pretrained(
|
28 |
self.pipe = self.pipe.to(device)
|
29 |
|
30 |
|
|
|
23 |
def __init__(self, path=""):
|
24 |
self.path = path
|
25 |
# load the optimized model
|
26 |
+
model_id = "stabilityai/stable-diffusion-x4-upscaler"
|
27 |
+
self.pipe = DiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
|
28 |
self.pipe = self.pipe.to(device)
|
29 |
|
30 |
|