How martizval/wizelineacademy works
Fitness Planner is a Flask app that collects health and location details, requests a personalized seven-day workout and diet plan from OpenAI, and displays the result. The main flow is visible in back.py; README also describes saving the plan to a text file, but that behavior is not present in the excerpted implementation, so it is shown as a documented output rather than a verified runtime call.
Main entry points: back.py Flask routes · index.html Health form · result.html Plan page
Components 7
Web interaction
- Health form
templates/index.html - Flask routes
back.py
Plan generation
- Plan builder
back.py - OpenAI API
Plan output
- Plan page
templates/result.html - Saved plan
Other components
- User
Connections 8
- User → Health form: enters details
README.md - Health form → Flask routes: submits form
README.md - Flask routes → Health form: renders page
back.py - Flask routes → Plan builder: calls builder
back.py - Plan builder → OpenAI API: requests plan
back.py - Flask routes → Plan page: renders plan
back.py - User → Plan page: views plan
README.md - Flask routes → Saved plan: saves plan
README.md