You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Proxy: Maxx0/Texting_sex (NSFW) vs ag_news (SFW), balanced (threshold=0.60)
0.6633
NSFW Image
LocalMod
1.0000
0.9500
0.9744
0
2
80
Proxy: x1101/nsfw (pos) vs cifar10 (neg), balanced
0.9750
Installation
git clone https://github.com/KOKOSde/localmod.git
cd localmod
pip install -e .# Download ML models (~3.5GB - includes image model)
python scripts/download_models.py
Quick Start
# Run demo
python examples/demo.py
Python Usage
fromlocalmodimportSafetyPipelinepipeline=SafetyPipeline()
report=pipeline.analyze("Check this text for safety issues")
print(f"Flagged: {report.flagged}")
print(f"Severity: {report.severity}")
# Install Discord dependency
pip install -e ".[discord]"# Set your bot tokenexport DISCORD_BOT_TOKEN=your_token_here
# Run the bot
python examples/discord_bot.py
Features: Real-time text & image moderation, auto-delete, timeout, logging.