numpy torch transformers pillow matplotlib gradio