Here’s a fully written Project Story in Markdown for HeartLens that you can paste directly into your submission. It’s professional, engaging, and hackathon-friendly:
HeartLens – Multi-Source Cardiovascular Risk Tool ❤️
Inspiration
Heart health is one of the most critical aspects of overall well-being, yet many people struggle to understand their risk factors. I wanted to build a tool that combines lifestyle, clinical, and ECG data to give users a clear, visual summary of their cardiovascular risk.
The idea came from observing how complex health metrics are often hidden behind medical jargon, making it hard for patients and learners to make sense of them. HeartLens aims to make heart health accessible, simple, and interactive.
What I Learned
- How to integrate multiple data sources (lifestyle, clinical, ECG) into a single risk assessment.
- Streamlit customization: using CSS to override default styles, create cards, color-coded risk summaries, and modern UI components.
- User experience design: presenting medical data clearly with visual cues and interactive inputs.
- Debugging and deploying Python apps to Streamlit Cloud for real-world use.
How I Built It
- Backend Logic:
- Implemented risk calculations in
predict.pyusing simple, interpretable rules. - Each risk category — lifestyle, clinical, ECG — is computed based on user input.
- Frontend Interface:
- Built with Streamlit for fast prototyping and interactive UI.
- Inputs include age, blood pressure, cholesterol, activity level, chest pain type, and max heart rate.
- Used CSS (
style.css) to create a purple-themed, modern, readable design with white text and card layouts.
- Output Visualization:
- Risk summary displayed in color-coded cards for easy interpretation.
- Highlighted each risk type separately for clarity.
Challenges Faced
- Overriding default Streamlit component styles (inputs, buttons, selectboxes) to match the app theme.
- Combining multiple risk sources into a simple, easy-to-understand summary.
- Ensuring the app works smoothly on different screen sizes and is visually appealing.
Built With
- Languages & Frameworks: Python 3, Streamlit
- Styling: HTML + CSS (custom styling)
- Hosting/Deployment: Streamlit Cloud
- Other Tools: VS Code, GitHub

Log in or sign up for Devpost to join the conversation.