torch transformers fastapi uvicorn pydantic scikit-learn numpy redis huggingface_hub python-dotenv