How naimisha1169/food-recommendation-system-project works
This Flask application turns a user's biometrics and food preferences into ranked Indian-dish recommendations, using a calorie target, weighted penalties, and a hard allergy exclusion. Its main flow runs from the form through recommendation logic to a results page. A separate data-preparation script converts nutrition CSV rows into the JSON dataset used at runtime. The README documents regional and dietary segmentation and Vercel deployment; source excerpts do not show template internals or deployment wiring, so those connections are not asserted.
Main entry points: app.py Recommendation handler · process_data.py Nutrition processor · index.html Preference form · dishes.json Dish dataset
Components 11
Web experience
- Preference form
templates/index.html - Ranked results
templates/results.html
Recommendation logic
- Recommendation handler
app.py - Meal target
app.py - Allergy guard
app.py - Dish scoring
app.py
Food data pipeline
- Nutrition source
Indian_Food_Nutrition_Processed.csv - Nutrition processor
process_data.py - Dish dataset
dishes.json
Other components
- Food seeker
- Vercel
Connections 10
- Food seeker → Preference form: enters preferences
README.md - Preference form → Recommendation handler: submits request
README.md - Recommendation handler → Meal target: calculates target
app.py - Recommendation handler → Allergy guard: checks allergens
app.py - Recommendation handler → Dish scoring: scores dishes
app.py - Recommendation handler → Dish dataset: loads dataset
app.py - Recommendation handler → Ranked results: renders results
app.py - Nutrition processor → Nutrition source: reads rows
process_data.py - Nutrition processor → Dish dataset: writes dishes
process_data.py - Vercel → Recommendation handler: hosts app
README.md