I've made some changes to your code. To keep the pretrained ELMo model fixed, I've set its trainable parameter to False. I've also used tf.keras to add layers to the Sequential model and reshaped the ELMo output to a 3D format, which is compatible with Conv1D layers. These changes have made the code operational. For a detailed look at the updated code, please refer to the gist.