run summarization
### System Info

with open(output_prediction_file, "w", encoding="utf-8") as writer:: The script opens the output file in write mode with UTF-8 encoding to handle non-ASCII characters

### Who can help?

_No response_

### Information

- [ ] The official example scripts
- [ ] My own modified scripts

### Tasks

- [ ] An officially supported task in the `examples` folder (such as GLUE/SQuAD, ...)
- [ ] My own task or dataset (give details below)

### Reproduction

with open(output_prediction_file, "w" as writer)
UnicodeEncodeError: 'ascii' codec can't encode character '\xe2' in position 1710: ordinal not in range(128)

### Expected behavior

It should generate predictions
@tigernandita 

Please report the issue with providing your env. info.

You can run the command `transformers-cli env` and copy-paste its output.

Also, please provide the full traceback.