Set upper bound

This commit is contained in:
Nicolas Mowen 2025-05-18 06:05:28 -06:00
parent 7e394a8cf6
commit 8d0ae6ff9d

View File

@ -83,6 +83,7 @@ class FaceRecognitionConfig(FrigateBaseModel):
min_faces: int = Field( min_faces: int = Field(
default=1, default=1,
gt=0, gt=0,
le=6,
title="Min face attempts for the sub label to be applied to the person object.", title="Min face attempts for the sub label to be applied to the person object.",
) )
save_attempts: int = Field( save_attempts: int = Field(