Img_to_array is not defined

This code is copied from the Jupyter notebook to Web app tutorial, but the undefined variables suggest that @dwarakavutla has only copied a little bit of the code from that example, which doesn’t work without the rest of the ML model.

@dwarakavutla, can you tell us a bit more about what you’re aiming to do here?