How to translate sentences after making a model

This is the translation model. The model gets generated but there is no method given to use model to translate sentences. Training Your Models on Cloud TPUs in 4 Easy Steps on Google Colab | by Rishabh Anand | Analytics Vidhya | Medium

Not sure if the question belongs here. Are you using transformers for translation? I looked at the colab but it seems it’s a custom model. Sadly I can-not answer that.