
'''simple docstring'''
import requests






def  __SCREAMING_SNAKE_CASE				(  _SCREAMING_SNAKE_CASE							, _SCREAMING_SNAKE_CASE				):
							_snake_case       =  {'Content-Type': 'application/json'}
							_snake_case       =  requests.post(_A							, json={"""text""": message_body}							, headers=_A				)
							if response.status_code != 200:
														_snake_case       =  (
														    'Request to slack returned an error '
														    f"""{response.status_code}, the response is:\n{response.text}"""
														)
														raise ValueError(_A				)


if __name__ == "__main__":
				# Set the slack url to the one provided by Slack when you create the webhook at
				# https://my.slack.com/services/new/incoming-webhook/
				send_slack_message('<YOUR MESSAGE BODY>', '<SLACK CHANNEL URL>')








'''simple docstring'''
import warnings

from diffusers import StableDiffusionInpaintPipeline as StableDiffusionInpaintPipeline  # noqa F401


warnings.warn(
    'The `inpainting.py` script is outdated. Please use directly `from diffusers import'
    ' StableDiffusionInpaintPipeline` instead.'
)