flask diffusers torch transformers accelerate gradio gradio_client Pillow