Update codes following the comments of @sourcery-ai.

Signed-off-by: Vic P <vic4key@gmail.com>
This commit is contained in:
Vic P 2024-08-21 02:14:37 +07:00
parent 7313a332c8
commit 6d28a52869
3 changed files with 3 additions and 2 deletions

View file

@ -6,6 +6,7 @@ from modules.typing import Frame
MAX_PROBABILITY = 0.85
# Preload the model once for efficiency
model = None
def predict_frame(target_frame: Frame) -> bool: