0

I'm try to read the model.pkl file from the artifacts output folder like this

def init():
    global model
    # infile = open('model.pkl','rb') 
    # model = pickle.load(infile)
    #model = joblib.load('model.pkl')
    model_path = Model.get_model_path(model_name = '<<modelname>>')
    model_path="outputs/model.pkl"
    # deserialize the model file back into a sklearn model
    model = joblib.load(model_path)

But still its not working please guide me how to read model.pkl file from artifacts output folder, because of this it is failing to deploy into Azure container instance

0 Answers0