wrap funny analysis in SHOWOFF env

This commit is contained in:
Luna 2023-06-10 01:32:54 -03:00
parent 099c7f8fc9
commit 7c94afb01e
1 changed files with 21 additions and 20 deletions

View File

@ -335,7 +335,8 @@ async def scores(ctx):
}
normalized_scores = {
model: summed_scores[model] / len(all_hashes) for model in summed_scores
model: round(summed_scores[model] / len(all_hashes), 10)
for model in summed_scores
}
print("scores are [worst...best]")
@ -346,7 +347,7 @@ async def scores(ctx):
reverse=True,
):
print(model, normalized_scores[model])
if os.getenv("SHOWOFF", "0") == "1":
print("[", end="")
for bad_md5_hash in sorted(