From 3506575cebd746a08b4f0d8a77c261fe93c31f5c Mon Sep 17 00:00:00 2001 From: Hozifa Elgharbawy Date: Tue, 18 Jun 2024 21:29:48 +0300 Subject: [PATCH] chore: Update MEALS_JSON_PATH in nutrition_model.py --- models/nutrition_model.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/models/nutrition_model.py b/models/nutrition_model.py index 4d84613..640b3d9 100644 --- a/models/nutrition_model.py +++ b/models/nutrition_model.py @@ -6,8 +6,7 @@ SERVER_FILE_DIR = os.path.dirname(os.path.abspath(__file__)) NUTRITION_MODEL_PATH = os.path.join(SERVER_FILE_DIR, "../resources/models/nutrition_model.pkl") -MEALS_JSON_PATH = os.path.join(SERVER_FILE_DIR, "../../src/resources/meals.json") - +MEALS_JSON_PATH = os.path.join(SERVER_FILE_DIR, "../resources/datasets/meals.json") # Ensure the file exists if not os.path.exists(MEALS_JSON_PATH): raise FileNotFoundError(f"File {MEALS_JSON_PATH} does not exist")