A Social Platform with AI-Powered Toxicity Detection
Repository: (Machine Learning API): https://github.com/DivitJain26/vak-flask-api.git
Live Deployment: https://vak-tau.vercel.app/
Note: The toxicity detection API is hosted on Render free tier, which sleeps when idle. It may take ~1 minute to respond the first time while the server wakes up.
npm installCreate a .env file in the root of your project:
cp .env.example .envMONGODB_URI=your_mongodb_connection_string_here(Use your MongoDB Atlas URI)
(For local development: Flask runs on port 5000)
NEXT_PUBLIC_FLASK_API_URL=http://127.0.0.1:5000For production (Render backend):
NEXT_PUBLIC_FLASK_API_URL=https://vak-flask-api.onrender.comBefore running the Next.js app, start the ML API:
python app.pyRun all commands from the root directory of the Next.js project.
Start Next.js Development Server
npm run devNow visit your app at: http://localhost:3000