Update handler.py
Browse files- handler.py +1 -1
handler.py
CHANGED
|
@@ -31,7 +31,7 @@ class EndpointHandler():
|
|
| 31 |
|
| 32 |
# run inference pipeline
|
| 33 |
with autocast(device.type):
|
| 34 |
-
image = self.pipe(inputs, guidance_scale=7.5)[
|
| 35 |
|
| 36 |
# encode image as base 64
|
| 37 |
buffered = BytesIO()
|
|
|
|
| 31 |
|
| 32 |
# run inference pipeline
|
| 33 |
with autocast(device.type):
|
| 34 |
+
image = self.pipe(inputs, guidance_scale=7.5).images[0]
|
| 35 |
|
| 36 |
# encode image as base 64
|
| 37 |
buffered = BytesIO()
|