๐Ÿ›ก๏ธ Advanced Content Moderation Chatbot

This chatbot uses Groq's GPT-OSS-Safeguard-20B model with an enhanced system prompt to analyze content against a comprehensive harm taxonomy. Enter your Groq API key and test content to see detailed moderation analysis.

Get your API key: https://console.groq.com/keys

๐Ÿ“ Example Queries (One per Category)

โ„น๏ธ About This Application

This application demonstrates advanced content moderation using AI with system prompts. The model analyzes text against 14 harm categories:

Category Description
S1 Violent Crimes - Violence toward people/animals
S2 Non-Violent Crimes - Fraud, theft, hacking, etc.
S3 Sex-Related Crimes - Trafficking, assault, harassment
S4 Child Sexual Exploitation - Any child abuse content
S5 Defamation - False statements harming reputation
S6 Specialized Advice - Unqualified medical/legal/financial advice
S7 Privacy - Sensitive personal information exposure
S8 Intellectual Property - Copyright violations
S9 Indiscriminate Weapons - WMDs and explosives
S10 Hate - Discrimination based on protected characteristics
S11 Suicide & Self-Harm - Self-injury encouragement
S12 Sexual Content - Erotic material
S13 Elections - Electoral misinformation
S14 Code Interpreter Abuse - Exploits and attacks

๐ŸŽฏ Key Features:

  • โœ… Enhanced System Prompt: Detailed instructions for comprehensive analysis
  • โœ… Direct Model Output: Shows only the detailed analysis from the model
  • โœ… Category Detection: Identifies all applicable harm categories
  • โœ… Detailed Explanations: Clear reasoning for each flag
  • โœ… 15 Example Queries: One safe example + one for each harm category
  • โœ… Clean Interface: No extra formatting, just pure analysis

๐Ÿ”’ Privacy & Security:

  • API keys are handled securely and never stored
  • All processing happens via Groq's secure API
  • No content is logged or retained

Note: This is a demonstration tool. Always implement appropriate safeguards and human review in production systems.


Powered by: Groq GPT-OSS-Safeguard-20B | Built with: Gradio