Stable Diffusion Set Python Function