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

I already included transformers in stream lit app with requirements.txt

ImportError: cannot import name ‘pipeline’ from ‘transformers’ (/home/user/.local/lib/python3.10/site-packages/transformers/
in huggingface streamlit app

Hi @KushwanthK!
Maybe there is an issue with the version of transformers you have installed?
Which version are you using?

# get transformers version
import transformers

To upgrade your version run:

python -m pip install -U transformers

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

Mhh could you share the contents of your requirements.txt so I could try to reproduce the error on my machine?