An end-to-end AI-powered system that analyzes user comments and determines whether they are safe to be displayed. The model performs multi-label toxicity classification and returns probability scores instead of simple binary outputs.
- Multi-label toxicity classification (toxic, obscene, threat, insult, identity hate)
- Probability-based scoring instead of yes/no output
- Real-time moderation (blur / warning for unsafe comments)
- Admin dashboard to review flagged content
- Clean and simple UI for interaction
- Algorithm: Logistic Regression
- Vectorization: TF-IDF
- Dataset: Jigsaw Toxic Comment Dataset
- Approach: Multi-label classification
Backend: FastAPI (Python) Frontend: HTML, CSS, JavaScript Machine Learning: Scikit-learn Database: Neon (PostgreSQL)
- Backend: Render
- Frontend: Vercel
- Database: Neon
- Create Post
- Analysis
- Confirmation
- Feed
- User History
- Admin Dashboard
https://moderation-system-deploy.vercel.app/
- User submits a comment
- Text is preprocessed and vectorized using TF-IDF
- Logistic Regression model predicts probabilities for each toxicity label
- System evaluates risk score
- UI responds accordingly (normal display / warning / blur)
- Flagged comments are available in the admin dashboard
git clone https://github.com/your-username/your-repo.git
cd your-repopip install -r requirements.txt
uvicorn main:app --reloadBackend will run on:
http://127.0.0.1:8000
Open the frontend folder and run using Live Server or any static server.
When running the project locally, make sure your frontend API calls point to the local backend endpoint instead of the deployed URL.
Example:
// Local
http://127.0.0.1:8000/predict
// Production
https://comment-moderation-api-yx0y.onrender.com/predictUpdate your API URLs accordingly depending on your environment.
- Improve model accuracy using deep learning (LSTM / Transformers)
- Add user authentication
- Support multilingual comments
- Improve UI/UX
Contributions are welcome! Feel free to fork the repository and submit a pull request.
- Jigsaw Toxic Comment Dataset
For feedback or suggestions, feel free to reach out: chaitanyakulkarni1345@gmail.com





