Keras weights parameter in Embedding layer not working

I was trying to train a model on text data using word embeddings in Keras, but I noticed that Keras is not even using the pre-trained embeddings that I am giving to it.

Here is a snapshot of the code.

keras_embedding

Shouldn’t the weights be 1? Since I have specified the weights parameter as 1.

Does anyone here know what’s going on and how to use pre-trained embeddings in Keras?