Encoder Decode Notebook Doubt

In the Encode Decoder notebook,

I’m receiving an error w.r.t to the call of the infer function not declared in the used notebook. The error and line is shown below:

image

Please help

Hi please refer this

Thanks @Ishvinder for the help