Error graded in train_val_split, fit_tokenizer, seq_and_pad, create_model

My code is running well but I have problems in graded that are train_val_split, fit_tokenizer, seq_and_pad, create_model

I attach my file Python (ipynb) and here the screenshot

[code removed - moderator]

Using global variables when not necessary results in grader failing the test.

Use function arguments instead.
For example, in function fit_tokenizer, use num_words instead of NUM_WORDS and oov_token instead of OOV_TOKEN.

Do the same for other functions.

1 Like

@balaji.ambresh Solved!!!, so thank you