<filename>api/resources/__init__.py
import os
import joblib

ml_model = joblib.load('models/model.joblib')
<filename>api/resources/__init__.py
import os
import joblib

ml_model = joblib.load('models/model.joblib')