asoderznik
commited on
Commit
•
af3699e
1
Parent(s):
87d9a6a
try this
Browse files- handler.py +2 -1
handler.py
CHANGED
@@ -43,7 +43,8 @@ class EndpointHandler():
|
|
43 |
logger.info(f"Printing loaded image into library {decoded_image}")
|
44 |
|
45 |
# run inference pipeline
|
46 |
-
|
|
|
47 |
|
48 |
# encode image as base 64
|
49 |
buffered = BytesIO()
|
|
|
43 |
logger.info(f"Printing loaded image into library {decoded_image}")
|
44 |
|
45 |
# run inference pipeline
|
46 |
+
with autocast(device.type):
|
47 |
+
upscaled_image = self.pipe(prompt="", image = decoded_image).images[0]
|
48 |
|
49 |
# encode image as base 64
|
50 |
buffered = BytesIO()
|