Spaces:
Runtime error
Runtime error
phuochungus
commited on
Commit
•
c0c2c77
1
Parent(s):
0890b20
test
Browse files- 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)
|