The error is caused by those pipelines being deprecated in Transformers v5, so the simplest workaround is !pip install âtransformers<5â.
If you need to rewrite it for v5-compatible code, it involves more stepsâŠ
Edit:
I did typoâŠ
!pip install "transformers<5"