LLM Course code errors

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…