Can you print what is returned by print(type(batch))? I’m pretty sure batch is a list because your error states that a list object doesn’t have the attribute text and you call batch.text which would call the text attribute of batch… which doesn’t exist