I have an Angular CLI built app, a script in 'src/app/text-gen/text-gen.component.ts' loads in a tensorflow.js model with:
this.model = await tf.loadLayersModel('../assets/models/model.json');
Referring to a JSON in 'src/assets/models/model.json'.
When deploying this app with Azure App Services everything works but for some reason this model.json returns 404 Not Found:
When looking at the Kudu Console I can see model.json in 'site/wwwroot/assets/models/model.json'.
Also, in 'angular.json', my "outputPath" is set to "dist".
I'm sure this is something very obvious - I'm very new to Angular, web-dev, Azure etc - but I can't seem to figure this one out!
Thanks!!!
Edit: Adding a screenshot of model.json in the Kudu console, I also tried '/assets/models/model.json' as the path and received the same error.

