Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add nsfw check for prompt and fastAPI demo script #162

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

lone17
Copy link

@lone17 lone17 commented Sep 27, 2024

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

@LordMatyc
Copy link

Hola

@CHJ85
Copy link

CHJ85 commented Oct 23, 2024

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.

@ankit7902
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants