public async Task <PredictionEngine <ProductInput, ProductScore> > GetEngine() { var modelStream = await blobStorage.DownloadBlobAsStream("recommender-model.ml", "Models"); var mlContext = new MLContext(); var model = mlContext.Model.Load(modelStream, out _); var engine = mlContext.Model.CreatePredictionEngine <ProductInput, ProductScore>(model); return(engine); }