phuochungus commited on
Commit
f6e7a1e
1 Parent(s): c0c2c77
Files changed (1) hide show
  1. app/routers/image.py +1 -1
app/routers/image.py CHANGED
@@ -19,7 +19,7 @@ async def handleImageRequest(
19
  try:
20
  img = imfrombytes(file, cv2.IMREAD_COLOR)
21
  except:
22
- return Response(content="Failed to read image!", status_code=400)
23
 
24
  if raw:
25
  bboxes, labels = inferenceImage(img, threshold, raw)
 
19
  try:
20
  img = imfrombytes(file, cv2.IMREAD_COLOR)
21
  except:
22
+ return Response(content="Failed to read image", status_code=400)
23
 
24
  if raw:
25
  bboxes, labels = inferenceImage(img, threshold, raw)