# load the sentiment model with open( join(dirname(realpath(__file__)), "models/sentiment_model_pipeline.pkl"), "rb" ) as f: model = joblib.load(f)