Jun-03-2020, 11:10 AM
First of all, you can debug the problem without flask. E.g. set
and run the lstm model. I suspect, the error says that the model expects array of 3 dims (maybe this last dimension is batch size...) Try to reshape your array, e.g.
data
variableand run the lstm model. I suspect, the error says that the model expects array of 3 dims (maybe this last dimension is batch size...) Try to reshape your array, e.g.
predict_request=np.array(predict_request)[np.newaxis, ...]
.