Skip to content

Commit

Permalink
make result more helpful
Browse files Browse the repository at this point in the history
  • Loading branch information
newhinton committed Apr 28, 2024
1 parent 004c327 commit f1dfca6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/checkProfanity.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
print("Checking: "+str(line.rstrip()))
prediction = predict_prob([line.rstrip()])
if prediction[0] > 0.5:
file.write(str(line.rstrip())+"\n")
file.write(str(prediction[0]) + " - " + str(line.rstrip())+"\n")
print("Offending line: "+str(line.rstrip()))

file.close()

0 comments on commit f1dfca6

Please sign in to comment.