I recently deployed my server on Heroku. The project aims to predict digits drawn on the canvas by the user. The project link is : https://github.com/tanishq9/MNIST-NodeJS.
The image drawn on canvas (using p5.js) is encoded and send to the backend for inference. At the backend the image is decoded and is saved on the server. This saved image is then send to a python script which outputs the predicted digit and sends this as a response.
Please run the code on your local machine and deploy it on Heroku. Let me where I got it wrong. Thanks.
P.S : The code runs perfectly for localhost but not on deployment.