This is a code bundle for Outbreak Early Warning Dashboard.
- Install Python dependencies:
cd backend pip install -r requirements.txt - Ensure
cholera_model.pkl,malaria_model.pkl, andsimulated_outbreak_data_v15.csvare in the project root. - Start the Flask server:
python app.py
-
GET /data/outbreak— Returns all outbreak data as JSON (fromsimulated_outbreak_data_v15.csv). -
POST /predict/cholera— Predicts cholera outbreak. Expects JSON body:{ "features": [/* feature values as array */] }Returns:
{ "prediction": <value> } -
POST /predict/malaria— Predicts malaria outbreak. Expects JSON body:{ "features": [/* feature values as array */] }Returns:
{ "prediction": <value> }
Run npm i to install the dependencies.
Run npm run dev to start the development server.