calibrate
This commit is contained in:
@@ -11,6 +11,7 @@ from starlette.exceptions import HTTPException as StarletteHTTPException
|
||||
|
||||
from app.cv.exceptions import (
|
||||
BlobInvalid,
|
||||
CalibrationDatasetInvalid,
|
||||
CvError,
|
||||
FormatUnsupported,
|
||||
ImageDecodeFailed,
|
||||
@@ -30,6 +31,7 @@ _CV_ERROR_MAP: list[tuple[type[CvError], int, str]] = [
|
||||
(UnknownProfile, 400, "UNKNOWN_PROFILE"),
|
||||
(ImageFormatUnsupported, 415, "UNSUPPORTED_MEDIA_TYPE"),
|
||||
(InvalidSettings, 422, "INVALID_SETTINGS"),
|
||||
(CalibrationDatasetInvalid, 422, "CALIBRATION_DATASET_INVALID"),
|
||||
]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user