Spaces:
Sleeping
Sleeping
Hozifa Elgharbawy
commited on
Commit
•
3506575
1
Parent(s):
20cfe10
chore: Update MEALS_JSON_PATH in nutrition_model.py
Browse files
models/nutrition_model.py
CHANGED
@@ -6,8 +6,7 @@ import os
|
|
6 |
|
7 |
SERVER_FILE_DIR = os.path.dirname(os.path.abspath(__file__))
|
8 |
NUTRITION_MODEL_PATH = os.path.join(SERVER_FILE_DIR, "../resources/models/nutrition_model.pkl")
|
9 |
-
MEALS_JSON_PATH = os.path.join(SERVER_FILE_DIR, "
|
10 |
-
|
11 |
# Ensure the file exists
|
12 |
if not os.path.exists(MEALS_JSON_PATH):
|
13 |
raise FileNotFoundError(f"File {MEALS_JSON_PATH} does not exist")
|
|
|
6 |
|
7 |
SERVER_FILE_DIR = os.path.dirname(os.path.abspath(__file__))
|
8 |
NUTRITION_MODEL_PATH = os.path.join(SERVER_FILE_DIR, "../resources/models/nutrition_model.pkl")
|
9 |
+
MEALS_JSON_PATH = os.path.join(SERVER_FILE_DIR, "../resources/datasets/meals.json")
|
|
|
10 |
# Ensure the file exists
|
11 |
if not os.path.exists(MEALS_JSON_PATH):
|
12 |
raise FileNotFoundError(f"File {MEALS_JSON_PATH} does not exist")
|