flask numpy opencv-python-headless fpdf torch torchvision gradio tensorflow Pillow reportlab