streamlit transformers flask scikit-learn PyPDF2 bert_score rouge_score nltk matplotlib sentencepiece