Need help in LayoutLM model

Hai,
I am new to transformer model. I am using LayoutLM Model to extract the key value pair from scanned document.
I gone through the tutorial, Example and wrote the simple code to get the text data from the document but getting pytorch tensor as out put.
Can someone please help me how to get text data as in the document. I have attached code screenshot.