Rf33d/dr-ckd-app
0
DR–CKD Early Detection Web App
Diabetic Retinopathy Based Early Detection of Chronic Kidney Disease Using Deep Learning
Project Structure
dr_ckd_app/
├── app.py ← Flask backend (model, inference, GradCAM, PDF)
├── model.pth ← YOUR Phase 2 checkpoint (place here)
├── requirements.txt ← Python dependencies
└── templates/
└── index.html ← Full frontend (upload, results, chatbot)Setup (one time)
# 1. Install dependencies
pip install -r requirements.txt
# 2. Place your Phase 2 .pth file in this folder, named model.pth
# (this is the BEST_CKPT from Step 7 of your notebook)
cp /path/to/your/phase2_best.pth model.pthRun
python app.py
# or: python app.py path/to/your_model.pthThen open → http://localhost:5000
What the Website Does
Notes
- The model runs on CPU by default (no GPU needed for inference)
- Model loads once at startup — predictions are fast
- The chatbot is pure JavaScript with ~17 Q&A topics, no external API
- PDF is generated server-side using ReportLab
