Zhibinhong commited on
Commit
9c246cc
1 Parent(s): c968655

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -15,7 +15,7 @@ class EndpointHandler():
15
 
16
  info=data['inputs']
17
  image=info.pop("image",data)
18
- prompt=info.pop("prompt",data).decode('utf-8')
19
  image=base64.b64decode(image)
20
  raw_images = Image.open(BytesIO(image)).convert('RGB')
21
 
 
15
 
16
  info=data['inputs']
17
  image=info.pop("image",data)
18
+ prompt=info.pop("prompt",data)
19
  image=base64.b64decode(image)
20
  raw_images = Image.open(BytesIO(image)).convert('RGB')
21