Image-captioning-bot

please help me with this code . My train function is showing error.

pleaseeee

https://colab.research.google.com/drive/1Ci-SIuxeVECwkci6jKuwO9bkb4DNFkiy?usp=sharing