Screenshot of the error code:
The solution is to change keras.layers import Input to tensorflow.keras.layers import Input