How ranveerd/neuro-balance works
Neuro-Balance is a web-based student mental-health score predictor. A user enters student and social-media details in the web form; the browser sends them to a FastAPI endpoint, which validates the fields, prepares a model input, runs the bundled model, and returns a score for display. The graph reflects the sampled API and browser code; the README provides no further capability details, and the HTML and model internals were not sampled.
Main entry points: main.py Predict endpoint · script.js Form handling · index.html Prediction form · Mental_Health_Model.pkl Trained model
Components 8
Web interface
- Prediction form
index.html - Form handling
script.js - Score display
script.js
Prediction API
- Predict endpoint
main.py - Input validation
main.py - Feature preparation
main.py
Scoring model
- Trained model
Mental_Health_Model.pkl
Other components
- Student
Connections 8
- Student → Prediction form: enters details
- Prediction form → Form handling: handles submit
- Form handling → Predict endpoint: POSTs prediction
- Predict endpoint → Input validation: validates
- Predict endpoint → Feature preparation: builds features
- Predict endpoint → Trained model: runs prediction
- Predict endpoint → Form handling: returns score
- Form handling → Score display: renders score