Aircraftfuelpredictor_V3 / load_model.py
poudel's picture
Update load_model.py
24f47e0 verified
raw
history blame contribute delete
309 Bytes
import tensorflow as tf
import joblib
def load_model_and_preprocessor(model_path, preprocessor_path):
# Load the neural network model
model = tf.keras.models.load_model(model_path)
# Load the preprocessor
preprocessor = joblib.load(preprocessor_path)
return model, preprocessor