Recipe generation and nutrition prediction project with:
- Notebook training/inference pipeline.
- FastAPI backend for model serving.
- React frontend for interactive UI.
- Notebook pipeline is available in
Naan_binary_v2.ipynb. - Backend is implemented under
backend/with/api/healthand/api/predict. - Frontend is implemented under
frontend/and connected to the backend. - Repository is configured to ignore large/generated artifacts for GitHub.
Naan_binary_v2.ipynb: Main updated notebook pipeline.backend/: FastAPI app and inference service.frontend/: React + Vite UI.requirements.txt: Root notebook/training dependencies.backend/requirements.txt: Backend API/runtime dependencies.DATASET.md: Dataset notes.docs/TRAINING_AND_PREPROCESSING.md: Additional training details.
python -m venv .venv
.\.venv\Scripts\Activate.ps1
python -m pip install --upgrade pippip install -r requirements.txt
jupyter notebook Naan_binary_v2.ipynbcd backend
..\dl_env\Scripts\python -m pip install -r requirements.txt
..\dl_env\Scripts\python run.pyAPI docs: http://127.0.0.1:8000/docs
cd frontend
npm install
npm run devFrontend URL: http://localhost:5173
Large model artifacts and datasets are intentionally ignored from git.
- Keep
cleaned_recipes.csvlocal. - Keep generated checkpoints local (
recipe_multitask_ckpt/,recipe_checkpoints/,recipe_model_final/). - Keep deployed backend model files local under
backend/assets/model_final/.
If you need to version large files, use Git LFS or a cloud artifact store.
- Confirm
.gitignoreis applied. - Run backend health check:
GET /api/health. - Run one prediction through UI or
POST /api/predict. - Verify no large artifacts are staged.
git status
git add .
git commit -m "Prepare repository for GitHub: ignore large artifacts, update docs and deps"
git push -u origin deploymentIf your branch name is different, replace deployment with your branch.