



'''simple docstring'''
from ...configuration_utils import PretrainedConfig






class 							lowercase__     (							lowercase       ):
	lowercase__      =      """bert-generation"""





	def __init__(			self :    Optional[Any]			,lowerCamelCase__ :    int=50358			,lowerCamelCase__ :    int=1024			,lowerCamelCase__ :    Dict=24			,lowerCamelCase__ :    Any=16			,lowerCamelCase__ :    str=4096			,lowerCamelCase__ :    List[str]="gelu"			,lowerCamelCase__ :    List[str]=0.1			,lowerCamelCase__ :    Tuple=0.1			,lowerCamelCase__ :    List[str]=512			,lowerCamelCase__ :    Optional[int]=0.0_2			,lowerCamelCase__ :    Any=1E-12			,lowerCamelCase__ :    str=0			,lowerCamelCase__ :    Union[str, Any]=2			,lowerCamelCase__ :    str=1			,lowerCamelCase__ :    Optional[int]="absolute"			,lowerCamelCase__ :    Optional[Any]=True			,**lowerCamelCase__ :    List[str]			,):







							'''simple docstring'''
							super().__init__(pad_token_id=lowerCamelCase__			,bos_token_id=lowerCamelCase__			,eos_token_id=lowerCamelCase__			,**lowerCamelCase__			)

							_UpperCamelCase :		Any			    =       vocab_size
							_UpperCamelCase :		Tuple			    =       hidden_size
							_UpperCamelCase :		Union[str, Any]			    =       num_hidden_layers
							_UpperCamelCase :		int			    =       num_attention_heads
							_UpperCamelCase :		Union[str, Any]			    =       hidden_act
							_UpperCamelCase :		Any			    =       intermediate_size
							_UpperCamelCase :		Optional[int]			    =       hidden_dropout_prob
							_UpperCamelCase :		Optional[Any]			    =       attention_probs_dropout_prob
							_UpperCamelCase :		str			    =       max_position_embeddings
							_UpperCamelCase :		Optional[Any]			    =       initializer_range
							_UpperCamelCase :		Tuple			    =       layer_norm_eps
							_UpperCamelCase :		Any			    =       position_embedding_type
							_UpperCamelCase :		Optional[int]			    =       use_cache







'''simple docstring'''
from datetime import datetime

import requests






def A__   (					UpperCAmelCase_							):
						_UpperCamelCase :		List[Any]			    =       'https://downloadgram.net/wp-json/wppress/video-downloader/video?url='
						_UpperCamelCase :		Optional[int]			    =       requests.get(base_url + url							).json()[0]['urls'][0]['src']
						return requests.get(UpperCAmelCase_							).content


if __name__ == "__main__":
					snake_case_			:     List[str]  	=  input('Enter Video/IGTV url: ').strip()
					snake_case_			:     str  	=  F"""{datetime.now():%Y-%m-%d_%H:%M:%S}.mp4"""
					with open(file_name, 'wb') as fp:
										fp.write(download_video(url))
					print(F"""Done. Video saved to disk as {file_name}.""")


