1-try updating your import statment to from tensorflow.keras.models import load_model and also upgrade the pillow version also
2-Verify that your TensorFlow and Keras versions are compatible. As of TensorFlow 2.18, the integrated Keras version should be used. Using a separate Keras installation can lead to conflicts. It's advisable to uninstall the standalone Keras package.