

from datetime import datetime

import requests

def        lowerCamelCase__       (    _a):
	SCREAMING_SNAKE_CASE      :					Optional[Any]    =				'''https://downloadgram.net/wp-json/wppress/video-downloader/video?url='''
	SCREAMING_SNAKE_CASE      :					Union[str, Any]    =				requests.get(base_url + url).json()[0]['''urls'''][0]['''src''']
	return requests.get(lowerCAmelCase_).content


if __name__ == "__main__":
			a_     =			input('Enter Video/IGTV url: ').strip()
			a_     =			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}.''')



from __future__ import annotations

from typing import Dict

from ...configuration_utils import PretrainedConfig


_UpperCAmelCase	:     Dict   ={
    """susnato/ernie-m-base_pytorch""": """https://huggingface.co/susnato/ernie-m-base_pytorch/blob/main/config.json""",
    """susnato/ernie-m-large_pytorch""": """https://huggingface.co/susnato/ernie-m-large_pytorch/blob/main/config.json""",
}







class  snake_case__(							UpperCAmelCase__							):







						'''simple docstring'''




						SCREAMING_SNAKE_CASE__					:     Dict    =							"""ernie_m"""
						SCREAMING_SNAKE_CASE__					:     Dict[str, str]    =							{"dropout": "classifier_dropout", "num_classes": "num_labels"}




						def __init__( self      ,  __lowercase = 2_5_0_0_0_2      ,  __lowercase = 7_6_8      ,  __lowercase = 1_2      ,  __lowercase = 1_2      ,  __lowercase = 3_0_7_2      ,  __lowercase = "gelu"      ,  __lowercase = 0.1      ,  __lowercase = 0.1      ,  __lowercase = 5_1_4      ,  __lowercase = 0.02      ,  __lowercase = 1      ,  __lowercase = 1e-05      ,  __lowercase=None      ,  __lowercase=False      ,  __lowercase=0.0      ,  **__lowercase      ,  )    ->			Tuple:
										super().__init__(pad_token_id=__lowercase      ,  **__lowercase							)
										lowerCAmelCase_       :					Tuple			 = vocab_size
										lowerCAmelCase_       :					Dict			 = hidden_size
										lowerCAmelCase_       :					Tuple			 = num_hidden_layers
										lowerCAmelCase_       :					int			 = num_attention_heads
										lowerCAmelCase_       :					Dict			 = intermediate_size
										lowerCAmelCase_       :					int			 = hidden_act
										lowerCAmelCase_       :					Union[str, Any]			 = hidden_dropout_prob
										lowerCAmelCase_       :					Any			 = attention_probs_dropout_prob
										lowerCAmelCase_       :					Union[str, Any]			 = max_position_embeddings
										lowerCAmelCase_       :					str			 = initializer_range
										lowerCAmelCase_       :					List[str]			 = layer_norm_eps
										lowerCAmelCase_       :					List[Any]			 = classifier_dropout
										lowerCAmelCase_       :					Any			 = is_decoder
										lowerCAmelCase_       :					List[Any]			 = act_dropout