You can try moving the deceleration outside of the code block so it is accessible to the entire program.
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence