flux icon indicating copy to clipboard operation
flux copied to clipboard

Add nsfw check for prompt and fastAPI demo script

Open lone17 opened this issue 1 year ago • 3 comments

  • nsfw check for prompt
  • fastAPI demo script
  • change gradio theme

lone17 avatar Sep 27 '24 11:09 lone17

Hola

LordMatyc avatar Oct 16 '24 07:10 LordMatyc

There are already two nsfw checks in place that you can activate via parameters. Also, simply saying "nsfw" ain't gonna do much. You have to explicitly let the model know what is and what isn't "nsfw". Because NSFW is just an idea. And it's also subjective. To most people, nsfw means gore and porn. To some, even nudity or seeing a butt and a penis is nsfw. Depends who you ask and what country you visit. But overall, FLUX is quite good at spotting "inappropriate" content. Even without these checks enabled, it's usually quite safe for work.

CHJ85 avatar Oct 23 '24 22:10 CHJ85

You can start with a basic keyword-based filter or integrate with an external NSFW API like OpenAI's moderation API or other third-party services for more robust detection.

ankit7902 avatar Nov 23 '24 15:11 ankit7902