docs: update BART model card to remove deprecated summarization pipeline usage

#99

The summarization task in pipeline is no longer supported in recent Transformers versions. Updating the example prevents confusion and ensures users can run the code without errors.

Replaces the deprecated pipeline(task="summarization") example in the BART model card with an AutoTokenizer + AutoModelForSeq2SeqLM implementation compatible with transformers>=5.3.0.

Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment