From 35fa004a89821433399a7814be535c79c368e9c5 Mon Sep 17 00:00:00 2001 From: Vladimir Date: Sat, 4 Nov 2023 16:50:22 +0300 Subject: [PATCH] [memos] update checker --- checkers/memos/memos.checker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/checkers/memos/memos.checker.py b/checkers/memos/memos.checker.py index b7aa9b52c..b58c1236b 100755 --- a/checkers/memos/memos.checker.py +++ b/checkers/memos/memos.checker.py @@ -120,7 +120,7 @@ def generate_meme_labels() -> List[api.Label]: x = random.randrange(500, 1000) y = random.randrange(500, 1000) - size = random.randrange(16, 256) + size = random.randrange(16, 200) r = random.randrange(0, 256) g = random.randrange(0, 100) @@ -245,7 +245,7 @@ def do_get(request: gornilo.GetRequest) -> gornilo.Verdict: if expected_image_hash != actual_image_hash: return gornilo.Verdict.CORRUPT('flag was changed') - if random.random() < 0.02: + if random.random() < 0.2: recognized_flag = recognize_text(image) recognized_flag = recognized_flag.replace(' ', '').replace('\n', '')