fastapi uvicorn ultralytics python-multipart pillow numpy torch torchvision transformers gradio safetensors