ImmuCore is a simple diabetes risk screening web app. Enter 8 health-check numbers in the browser, a trained Random Forest model estimates your risk level (low, moderate, or high), and Google Gemini explains what the numbers mean along with tailored lifestyle precautions.
Medical Disclaimer: ImmuCore is an educational/demo project and does not provide medical advice, diagnosis, or treatment. Always consult a qualified healthcare professional.
git clone https://github.com/ImmuForge/ImmuCore.git
cd ImmuCore
python -m venv venv
source venv/bin/activate # macOS/Linux
# venv\Scripts\activate # Windows
pip install -r requirements.txtcp .env.example .envOpen .env and set GEMINI_API_KEY to your key from Google AI Studio.
If
.envhas no key (or an invalid key), predictions and the disclaimer still work, while What This Means and Recommended Precautions stay blank.
python model/src/train_model.pyThis runs 5-fold cross-validation and exports the model files to model/exports/.
uvicorn api.main:app --reload --port 8000Open in your browser:
- Web App:
http://localhost:8000 - API Docs (Swagger):
http://localhost:8000/docs - Health Check:
http://localhost:8000/health
pytest -vdocker build -t immucore .
docker run -p 8000:8000 --env-file .env immucore