gradio torch Pillow numpy sam2