Sorry for hijacking the thread, but as per the model you gave in the original question you need to do the tokenization/preprocessing before passing it to the model even after saving.



 Callum_Matthews:

def LSTM_model():

    inp = Input(shape=(MAXLEN,)) # check here
    x = Embedding(vocab_size, X_text.shape[1], trainable=False, mask_zero=True)(inp)



The embedding layer expects the Input to be tokenized.