ImportError: cannot import name 'pipeline' from 'transformers'
I already included transformers in stream lit app with requirements.txtImportError: cannot import name ‘pipeline’ from ‘transformers’ (/home/user/.local/lib/python3.10/site-packages/transformers/init.py)in huggingface streamlit app
2024-02-04T19:10:05Z
KushwanthK:ImportError: cannot import name ‘pipeline’ from ‘transformers’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
print(transformers.__version__)To upgrade your version run:python -m pip install -U transformers
2024-02-04T21:05:14Z
I am using transformers==4.28.0This was working in my local google colab but not in hugging faces
2024-02-05T07:14:31Z
Mhh could you share the contents of yourrequirements.txtso I could try to reproduce the error on my machine?