Yes the image is the image path.
I made on purpose not to use image_path because of the other error.
I have load it. Here are two different errors.
image = Image.open(image_path)
predict(image, model)

NameError                                 Traceback (most recent call last)
 in ()
----> 1 image = Image.open(image_path)
2 predict(image, model)
NameError: name ‘image_path’ is not defined
Secondly, I did load this one. I got this.
image = Image.open(image)
predict(image, model)
I got another different error.
AttributeError                            Traceback (most recent call last)
 in ()
----> 1 image = Image.open(image)
2 predict(image, model)
/opt/conda/lib/python3.6/site-packages/PIL/Image.py in open(fp, mode)
2587         exclusive_fp = True
2588
-> 2589     prefix = fp.read(16)
2590
2591     preinit()
AttributeError: ‘JpegImageFile’ object has no attribute ‘read’