Tr ocr training error

I am trying to fine tune the trocr model on an custom data. While training I am getting an error stating

ValueError: text input must of type str (single example), List[str] (batch or single pretokenized example) or List[List[str]] (batch of pretokenized examples).

the link to notebook I was referring:

Kindly provide me help!!