torch transformers Pillow fastapi SentencePiece python-multipart altair