ImportError: cannot import name 'pipeline' from 'transformers'

I am using transformers==4.28.0
This was working in my local google colab but not in hugging faces