



"""simple docstring"""







from ...configuration_utils import PretrainedConfig
from ...utils import logging


A		=						logging.get_logger(__name__)

A		=						{
    'google/vivit-b-16x2-kinetics400': (
        'https://huggingface.co/google/vivit-b-16x2-kinetics400/resolve/main/config.json'
    ),
    # See all Vivit models at https://huggingface.co/models?filter=vivit
}

class       _a  ( SCREAMING_SNAKE_CASE__):
			__magic_name__     					=     """vivit"""



			def __init__(			self							:				Optional[Any]   ,	_lowercase							:				Union[str, Any]=224   ,	_lowercase							:				Dict=32   ,	_lowercase							:				Optional[Any]=[2, 16, 16]   ,	_lowercase							:				int=3   ,	_lowercase							:				Tuple=768   ,	_lowercase							:				Optional[int]=12   ,	_lowercase							:				Optional[Any]=12   ,	_lowercase							:				Optional[Any]=3072   ,	_lowercase							:				Dict="gelu_fast"   ,	_lowercase							:				int=0.0   ,	_lowercase							:				str=0.0   ,	_lowercase							:				Union[str, Any]=0.02   ,	_lowercase							:				str=1E-06   ,	_lowercase							:				List[str]=True   ,	**_lowercase							:				Any   ,	)							->					List[Any]:
									snake_case   :			List[str]						    = hidden_size
									snake_case   :			Any						    = num_hidden_layers
									snake_case   :			Optional[Any]						    = num_attention_heads
									snake_case   :			int						    = intermediate_size
									snake_case   :			Tuple						    = hidden_act
									snake_case   :			str						    = hidden_dropout_prob
									snake_case   :			Dict						    = attention_probs_dropout_prob
									snake_case   :			int						    = initializer_range
									snake_case   :			Optional[Any]						    = layer_norm_eps

									snake_case   :			Tuple						    = image_size
									snake_case   :			Union[str, Any]						    = num_frames
									snake_case   :			List[Any]						    = tubelet_size
									snake_case   :			int						    = num_channels
									snake_case   :			Union[str, Any]						    = qkv_bias

									super().__init__(**_lowercase		)








"""simple docstring"""







import requests

def  __SCREAMING_SNAKE_CASE		(			lowerCamelCase_:							str     ,		lowerCamelCase_:							str ):
						"""simple docstring"""






						snake_case   :			List[str]						    = {"Content-Type": "application/json"}
						snake_case   :			int						    = requests.post(lowerCamelCase_     ,		json={"text": message_body}     ,		headers=lowerCamelCase_ )
						if response.status_code != 2_0_0:
												snake_case   :			str						    = (
												    "Request to slack returned an error "
												    f'''{response.status_code}, the response is:\n{response.text}'''
												)
												raise ValueError(lowerCamelCase_ )


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>')



