upro commited on
Commit
a6074d7
1 Parent(s): 6a245ac

Update handler.py

Browse files
Files changed (1) hide show
  1. 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)["sample"][0]
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()