Drazcat-AI commited on
Commit
4a93065
·
verified ·
1 Parent(s): 75d7149

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -44,7 +44,7 @@ class EndpointHandler():
44
  image_path = event["inputs"]
45
 
46
  try:
47
- image = Image.Image()._new(Image.open(BytesIO(image)))
48
  #image = urlopen(image_path).read()
49
  predictions = self.predict_objects(imag)
50
  return {
 
44
  image_path = event["inputs"]
45
 
46
  try:
47
+ image = Image.Image()._new(Image.open(BytesIO(image_path)))
48
  #image = urlopen(image_path).read()
49
  predictions = self.predict_objects(imag)
50
  return {