API development finished + Docker is working locally

This commit is contained in:
Grégoire Mureau 2025-08-13 11:54:11 +02:00
parent fbf20fe0f0
commit d119ffb02a

View file

@ -11,12 +11,12 @@ from tensorflow.keras.preprocessing.sequence import pad_sequences
import pandas as pd
from datetime import datetime, timedelta
# TO UNCOMMENT FOR DEVELOPMENT. OTHERWISE, LEAVE AS IS
# Access the .env file
PARENT_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), "../../"))
sys.path.append(PARENT_DIR)
# 🔐 Load environment variables (.env two levels above)
load_dotenv()
# # TO UNCOMMENT FOR DEVELOPMENT. OTHERWISE, LEAVE AS IS
# # Access the .env file
# PARENT_DIR = os.path.abspath(os.path.join(os.path.dirname(__file__), "../../"))
# sys.path.append(PARENT_DIR)
# # 🔐 Load environment variables (.env two levels above)
# load_dotenv()
# 🔁 Import the preprocessing function (LOCAL)
from preprocessing import preprocess_tweet