Commit
·
ecee85b
1
Parent(s):
be1c648
Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
|
@@ -33,7 +33,7 @@ class EndpointHandler():
|
|
| 33 |
A :obj:`dict`:. base64 encoded image
|
| 34 |
"""
|
| 35 |
|
| 36 |
-
self.pipe = StableDiffusionUpscalePipeline.from_pretrained(path, torch_dtype=torch.float16)
|
| 37 |
self.pipe = self.pipe.to(device)
|
| 38 |
logger.info('data received %s', data)
|
| 39 |
inputs = data.get("inputs")
|
|
|
|
| 33 |
A :obj:`dict`:. base64 encoded image
|
| 34 |
"""
|
| 35 |
|
| 36 |
+
self.pipe = StableDiffusionUpscalePipeline.from_pretrained(self.path, torch_dtype=torch.float16)
|
| 37 |
self.pipe = self.pipe.to(device)
|
| 38 |
logger.info('data received %s', data)
|
| 39 |
inputs = data.get("inputs")
|