I got this error, anyone know why?
Here’s the code to access my model:
def read_model(url='output_model/model.joblib'):
if ENV == 'AWS':
file_key = url
obj = s3.get_object(Bucket=bucket_name, Key=file_key)
model = joblib.load(io.BytesIO(obj['Body'].read()), 'rb')
else:
model = joblib.load(url)
return model