@valhalla @DeathTruck With reference to the code pasted in the question. I tried using it
tokenizer = transformers.PegasusTokenizer.from_pretrained(model_name)
train_desc = list(train_df['description'])
train_encodings = tokenizer(train_desc, truncation = True, padding = True)
But these give me the following error " ‘NoneType’ object is not callable" for the last line where i basically call tokenizer when i do it in a colab notebook. Although on my local jupyter notebook, it doesn’t throw any error.
Please help me out here