Heroku and MyBinder not displaying predictions

I am very confused. I think my code for lesson 2

is nearly identical to this repo which successfully runs the code:

I can render the site both on Mybinder and Heroku, upload the image, but the predictions are not showing.

It works on Voila rendered on Jupyter Notebook locally, but I would like to be able to put them online.

Does anyone know what might be wrong?