Hello everyone! I am developing flask application in which I use keras model to predict class of the picture. I have already trained model offline I only load weight in server. Server properly saves image to directory but then it cannot finish evalutaing of predict function.
In Shell I get very quick response from the same program passing the same test picture as argument.
#part of predict_img function
##################################################
test_image = image.load_img(img,target_size=(100, 100))
test_image = image.img_to_array(test_image)
test_image = np.expand_dims(test_image, axis = 0)
result = classifier.predict(test_image) <---------here program stucks
ind = np.where(result[0] !=0)[0][0]
with open('en.json') as json_file:
classes = load(json_file)