How jaya-surya1602/diet-workout-recommendation-system-using-machine-learning-python works
This is a Flask web app that collects a user’s diet, fitness, lifestyle, and health details, requests a tailored plan from Gemini, parses the response into recommendation sections, and renders the result. The sampled source shows the routes and server-side flow; the template and README were not sampled, so the form’s exact structure and user interactions are not verified.
Main entry points: main.py Gemini API client · index.html Rendered plan
Components 10
Web interface
- Flask app
Diet-Workout-Recommendation-System-Using-Machine-Learning-Python-master/main.py - Profile form
Diet-Workout-Recommendation-System-Using-Machine-Learning-Python-master/templates/index.html - Profile capture
Diet-Workout-Recommendation-System-Using-Machine-Learning-Python-master/main.py - Rendered plan
Diet-Workout-Recommendation-System-Using-Machine-Learning-Python-master/templates/index.html
Recommendation generation
- Plan prompt
Diet-Workout-Recommendation-System-Using-Machine-Learning-Python-master/main.py - Gemini API client
Diet-Workout-Recommendation-System-Using-Machine-Learning-Python-master/main.py - Response parser
Diet-Workout-Recommendation-System-Using-Machine-Learning-Python-master/main.py - Plan sections
Diet-Workout-Recommendation-System-Using-Machine-Learning-Python-master/main.py
Other components
- User
- Gemini service
Connections 11
- User → Flask app: opens page
Diet-Workout-Recommendation-System-Using-Machine-Learning-Python-master/main.py - Flask app → Profile form: renders page
Diet-Workout-Recommendation-System-Using-Machine-Learning-Python-master/main.py - User → Profile capture: submits profile
- Profile capture → Plan prompt: passes profile
Diet-Workout-Recommendation-System-Using-Machine-Learning-Python-master/main.py - Plan prompt → Gemini API client: builds request
Diet-Workout-Recommendation-System-Using-Machine-Learning-Python-master/main.py - Gemini API client → Gemini service: sends prompt
Diet-Workout-Recommendation-System-Using-Machine-Learning-Python-master/main.py - Gemini service → Gemini API client: returns text
Diet-Workout-Recommendation-System-Using-Machine-Learning-Python-master/main.py - Gemini API client → Response parser: passes text
Diet-Workout-Recommendation-System-Using-Machine-Learning-Python-master/main.py - Response parser → Plan sections: extracts sections
Diet-Workout-Recommendation-System-Using-Machine-Learning-Python-master/main.py - Flask app → Rendered plan: renders plan
Diet-Workout-Recommendation-System-Using-Machine-Learning-Python-master/main.py - Plan sections → Rendered plan: supplies results
Diet-Workout-Recommendation-System-Using-Machine-Learning-Python-master/main.py