Drazcat-AI commited on
Commit
90410b7
·
verified ·
1 Parent(s): 77aa31d

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -51,7 +51,7 @@ class EndpointHandler():
51
  else:
52
  y, x = 1280, 960
53
  image = cv2.resize(image, (x, y))
54
- predictions = self.predict_objects(self, image, [image_size[0]/x,image_size[1]/y])
55
  return {
56
  "statusCode": 200,
57
  "body": json.dumps(predictions),
 
51
  else:
52
  y, x = 1280, 960
53
  image = cv2.resize(image, (x, y))
54
+ predictions = self.predict_objects(image, [image_size[0]/x,image_size[1]/y])
55
  return {
56
  "statusCode": 200,
57
  "body": json.dumps(predictions),