asoderznik
commited on
Commit
•
6915ef8
1
Parent(s):
96b1d9e
try something
Browse files- handler.py +2 -1
handler.py
CHANGED
@@ -22,7 +22,8 @@ if device.type != 'cuda':
|
|
22 |
class EndpointHandler():
|
23 |
def __init__(self, path=""):
|
24 |
# load the optimized model
|
25 |
-
|
|
|
26 |
self.pipe = self.pipe.to(device)
|
27 |
|
28 |
|
|
|
22 |
class EndpointHandler():
|
23 |
def __init__(self, path=""):
|
24 |
# load the optimized model
|
25 |
+
model_id = "stabilityai/stable-diffusion-x4-upscaler"
|
26 |
+
self.pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float16)
|
27 |
self.pipe = self.pipe.to(device)
|
28 |
|
29 |
|