Skip to content

Commit

Permalink
chore: Update MEALS_JSON_PATH in nutrition_model.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Hozifaelgharbawy committed Jun 18, 2024
1 parent 20cfe10 commit 3506575
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions models/nutrition_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 3506575

Please sign in to comment.