0

I have a Node.js web application which works fine in my local machine. I have used @tensorflow/tfjs-node for loading my ML model and predicting the results in my application.

package.json file:

{
  ...
  "keywords": [],
  "author": "",
  "license": "ISC",
  "dependencies": {
    "@tensorflow/tfjs-node": "^4.2.0",
    "bcrypt": "^5.1.0",
    "cloudinary": "^1.33.0",
    "cors": "^2.8.5",
    "cross-env": "^7.0.3",
    "dotenv": "^16.0.3",
    "eslint": "^8.32.0",
    "express": "^4.18.2",
    "express-async-errors": "^3.1.1",
    "helmet": "^6.0.1",
    "jsonwebtoken": "^9.0.0",
    "mongoose": "^6.8.4",
    "morgan": "^1.10.0",
    "multer": "^1.4.5-lts.1",
    "nodemon": "^2.0.20"
  }
}

When I deploy my application to Azure using Azure App Service, the deployment succeeds but when I view my website in the browser, I get the following errors in the Streaming Logs:

Application has thrown an uncaught exception and is terminated:
Error: \\?\C:\home\site\wwwroot\node_modules\@tensorflow\tfjs-node\lib\napi-v8\tfjs_binding.node
is not a valid Win32 application.

How to fix this? Thanks.

suravshrestha
  • 329
  • 1
  • 5
  • 14

0 Answers0