'Why do I get this error while calling predict in Keras?

I'm a newbie to Tensorflow, I've done many models but today when calling predict I get this error : ValueError: Exception encountered when calling layer "sequential" (type Sequential).

Input 0 of layer "dense" is incompatible with the layer: expected min_ndim=2, found ndim=1. Full shape received: (None,).

What is the problem here ?

Thank you !



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source