from tensorflow.python.keras.preprocessing.image import load_img,img_to_array from tensorflow.python.keras.models import Sequential,Model from tensorflow.python.keras.layers import Dense,Flatten,Input import tensorflow as tf from tensorflow.python.ke…