I recommend you:
- Look at your code in the sentences_to_indices() function.
- Look at your model() function, and see if you are calling sentence_to_avg() correctly.
When you get a key error, it means somewhere you’re using a specific word from the notebook, which makes the grader break (because it uses a different set of data).