Spaces:
Running
Running
Commit History
-
Update README and implement training and evaluation scripts for Chinese summarization model Running
czjun- Updated README.md to include new training and evaluation instructions. - Changed default model name in app.py to `fnlp/bart-base-chinese` and adjusted max source length. - Added a new endpoint `/summarize-plain` in app.py for plain text summarization. - Updated requirements.txt to include new dependencies: accelerate, rouge-score, and bert-score. - Created data_utils.py for loading JSONL data and iterating through summarization examples. - Implemented evaluate.py for model evaluation with ROUGE and BERTScore metrics. - Developed train.py for fine-tuning the summarization model with specified parameters. - Added error handling for missing dependencies in evaluation and training scripts.8d28a45