Skip to content

davisconsultingservices/openfaas-opennsfw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenFaaS OpenNSFW

An OpenFaaS function that is a fork of EugenCepoi/nsfw_api and runs Yahoo's Open NSFW model. It scores 'safe for work' and 'not safe for work' between 0 to 1 based on the nudity in the image.

# deploy
faas-cli deploy -y stack.yml


# invoke
echo https://github.com/davisconsultingservices/openfaas-opennsfw/raw/master/puppy.jpg | faas-cli invoke openfaas-opennsfw | jq

{
  "sfw_score": 0.9973425269126892,
  "nsfw_score": 0.0026575096417218447
}

echo https://github.com/davisconsultingservices/openfaas-opennsfw/raw/master/eve.jpg | faas-cli invoke openfaas-opennsfw | jq

{
  "sfw_score": 0.12137062847614288,
  "nsfw_score": 0.8786293268203735
}

About

An OpenFaaS function that runs Yahoo's Open NSFW model

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published