In this video we will showcase how to use the AI module to setup field validations on your image fields, so people can't upload NSFW images.
NOTE: This will showcase a mild NSFW image of Justin Bieber in underwear from his Calvin Klein campaign.
This will use the AI Validations submodule in the AI module and the Field Validations module together with the Falconsai/nsfw_image_detection model from Huggingface to make sure that you can't upload bad images.
Its very simple to setup and very powerful.
Links:
FreelyGive: https://freelygive.io/
Drupal AI module: https://www.drupal.org/project/ai
Frederik Wouters: https://www.drupal.org/u/wouters_f
Huggingface model: https://huggingface.co/Falconsai/nsfw_image_detection
Field Validation: https://www.drupal.org/project/field_validation