A machine learning web app that predicts your daily focus score based on your sleep, screen time, meals and mood — and gives you a personalised AI productivity tip.
- 📊 Focus Score Prediction — ML model predicts your focus score (0–100) based on daily habits
- 🟢🟡🔴 Colour-coded Results — High / Medium / Low focus with a progress bar
- 💡 AI Productivity Tips — Personalised tip generated by LLaMA 3.3 via Groq API
- 🎚️ Simple Sliders — Just move 4 sliders and get your result instantly
- 🤖 Linear Regression Model — Trained on a custom dataset of daily habits vs focus scores
Move the sliders → Click Predict → Get your focus score and AI tip instantly
git clone https://github.com/pparashar073/FocusFlow.git
cd FocusFlowpip install streamlit scikit-learn pandas joblib groq python-dotenv- Go to console.groq.com
- Sign up and create an API key
GROQ_API_KEY=your_groq_api_key_here
streamlit run app.py| Tech | Purpose |
|---|---|
| Python | Core language |
| Scikit-learn | Linear Regression model training |
| Pandas | Data handling |
| Joblib | Model saving and loading |
| Streamlit | Web UI framework |
| Groq API | AI inference engine |
| LLaMA 3.3 70B | Productivity tip generation |
- A Linear Regression model is trained on a dataset of daily habits (sleep, screen time, meals, mood) vs focus scores
- User inputs their daily stats using sliders
- The trained model predicts a focus score out of 100
- The score is displayed with a colour-coded label and progress bar
- LLaMA 3.3 via Groq generates a personalised productivity tip based on the user's inputs and score
FocusFlow/
├── app.py # Main Streamlit app
├── train_model.py # Model training script
├── data.csv # Training dataset
├── requirements.txt # Dependencies
└── .env # API key (not committed)
Paras Parashar — B.Tech CS/AI Student
GitHub · LinkedIn
FocusFlow v1.0 — Know your focus. Improve your day. 🧠