Production deployment with all bug fixes and built-in demo assets:
- Demo ECG first-use fix (hidden required file input toggle)
- HTTP 403 on page load fix (new /api/me endpoint, admin probe rewritten)
- Form validation fix (no more 'invalid form control not focusable')
- Demo content stored in DB BYTEA (survives HF Spaces container restarts)
- Built-in demo seeds: Normal ECG, Abnormal ECG (PVC, anomaly-detected),
Normal Heart Sound — all work out-of-the-box with zero uploads
- Orphan demo row filtering at list time (dropdown never offers a 404)
- DB connection pool race condition fix (threading.Lock, no more 500)
- Frontend null-safe DOM helpers (no more TypeError on textContent)
- Seed race condition fix (atomic INSERT guard)
- Env-gated session cookie flags (HTTPS prod defaults preserved)
- Async startup maintenance (never blocks port bind)
Complete Flask + TensorFlow + PyTorch heart disease analysis application.
- Dockerfile: Python 3.10, port 7860, gunicorn, non-root user
- All model files tracked with Git LFS
- Lazy loading: no ML imports at startup
- Neon PostgreSQL, Google Gemini AI, professional medical reports
- CPU-only PyTorch (torch==2.0.1+cpu)