Skip to content
ImmuForgePublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

Repository files navigation

ImmuCore

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.


How to Run Locally

1. Clone and install dependencies

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.txt

2. Add your Gemini API key (optional)

cp .env.example .env

Open .env and set GEMINI_API_KEY to your key from Google AI Studio.

If .env has no key (or an invalid key), predictions and the disclaimer still work, while What This Means and Recommended Precautions stay blank.

3. Train the model

python model/src/train_model.py

This runs 5-fold cross-validation and exports the model files to model/exports/.

4. Start the app

uvicorn api.main:app --reload --port 8000

Open in your browser:

  • Web App: http://localhost:8000
  • API Docs (Swagger): http://localhost:8000/docs
  • Health Check: http://localhost:8000/health

Run Tests

pytest -v

Run with Docker (Optional)

docker build -t immucore .
docker run -p 8000:8000 --env-file .env immucore

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages