Flask Pillow torch diffusers==0.18.2 Flask-Cors gradio cv numpy torch controlnet_aux mediapipe