Skip to content

Commit

Permalink
[memos] update checker
Browse files Browse the repository at this point in the history
  • Loading branch information
keltecc committed Nov 4, 2023
1 parent e26d008 commit 9dcebb2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions checkers/memos/memos.checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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', '')
Expand Down

0 comments on commit 9dcebb2

Please sign in to comment.