How yelli05/ecg-cardio-dashboard works
This is an educational ECG heartbeat-classification web app. A user selects one of the bundled sample beats or uploads a one-row CSV in the Streamlit dashboard; the dashboard sends 187 values to the FastAPI service, which validates them, runs the loaded PyTorch CNN, and returns a class, confidence, and probabilities for display. The README also documents the model-training and baseline-comparison work. That development branch is shown at the available directory level; its notebook internals were not sampled.
Main entry points: main.py FastAPI API · app.py Streamlit dashboard · notebooks_or_scripts Training and baselines · ecg_model.pth CNN weights
Components 8
Heartbeat dashboard
- Streamlit dashboard
frontend/app.py - Sample beats
frontend/sample_heartbeats.csv
Inference service
- FastAPI API
backend/main.py - ECG CNN
backend/model.py - CNN weights
backend/ecg_model.pth
Model development
- Training and baselines
notebooks_or_scripts - Model results
results
Other components
- User
Connections 8
- User → Streamlit dashboard: selects beat
README.md - Streamlit dashboard → Sample beats: reads samples
frontend/app.py - Streamlit dashboard → FastAPI API: sends values
frontend/app.py - FastAPI API → ECG CNN: runs inference
backend/main.py - FastAPI API → CNN weights: loads weights
backend/main.py - FastAPI API → Streamlit dashboard: returns prediction
README.md - Training and baselines → CNN weights: produces checkpoint
README.md - Training and baselines → Model results: evaluates models
README.md