



from collections import OrderedDict
from typing import Mapping

from ...configuration_utils import PretrainedConfig
from ...onnx import OnnxConfig
from ...utils import logging


_lowerCamelCase    :		Dict		      =    logging.get_logger(__name__)

_lowerCamelCase    :		Tuple		      =    {
    """YituTech/conv-bert-base""": """https://huggingface.co/YituTech/conv-bert-base/resolve/main/config.json""",
    """YituTech/conv-bert-medium-small""": (
        """https://huggingface.co/YituTech/conv-bert-medium-small/resolve/main/config.json"""
    ),
    """YituTech/conv-bert-small""": """https://huggingface.co/YituTech/conv-bert-small/resolve/main/config.json""",
    # See all ConvBERT models at https://huggingface.co/models?filter=convbert
}


class 						lowercase    (							SCREAMING_SNAKE_CASE_):
						'''simple docstring'''


						UpperCAmelCase			:		List[str]		=		'convbert'







						def __init__(  self    :				List[str]       ,	snake_case    :				Tuple=30522       ,	snake_case    :				Any=768       ,	snake_case    :				Dict=12       ,	snake_case    :				Union[str, Any]=12       ,	snake_case    :				List[str]=3072       ,	snake_case    :				Union[str, Any]="gelu"       ,	snake_case    :				List[Any]=0.1       ,	snake_case    :				List[str]=0.1       ,	snake_case    :				Union[str, Any]=512       ,	snake_case    :				Dict=2       ,	snake_case    :				List[str]=0.02       ,	snake_case    :				List[Any]=1E-12       ,	snake_case    :				Tuple=1       ,	snake_case    :				Tuple=0       ,	snake_case    :				int=2       ,	snake_case    :				Optional[Any]=768       ,	snake_case    :				List[Any]=2       ,	snake_case    :				Optional[int]=9       ,	snake_case    :				List[str]=1       ,	snake_case    :				Tuple=None       ,	**snake_case    :				Optional[int]       ,	):



											'''simple docstring'''


											super().__init__(
											    pad_token_id=snake_case       ,	bos_token_id=snake_case       ,	eos_token_id=snake_case       ,	**snake_case       ,	)

											SCREAMING_SNAKE_CASE							:     List[str]						=				vocab_size
											SCREAMING_SNAKE_CASE							:     Union[str, Any]						=				hidden_size
											SCREAMING_SNAKE_CASE							:     Dict						=				num_hidden_layers
											SCREAMING_SNAKE_CASE							:     Tuple						=				num_attention_heads
											SCREAMING_SNAKE_CASE							:     List[Any]						=				intermediate_size
											SCREAMING_SNAKE_CASE							:     Tuple						=				hidden_act
											SCREAMING_SNAKE_CASE							:     str						=				hidden_dropout_prob
											SCREAMING_SNAKE_CASE							:     int						=				attention_probs_dropout_prob
											SCREAMING_SNAKE_CASE							:     Union[str, Any]						=				max_position_embeddings
											SCREAMING_SNAKE_CASE							:     Union[str, Any]						=				type_vocab_size
											SCREAMING_SNAKE_CASE							:     List[str]						=				initializer_range
											SCREAMING_SNAKE_CASE							:     Optional[int]						=				layer_norm_eps
											SCREAMING_SNAKE_CASE							:     Optional[int]						=				embedding_size
											SCREAMING_SNAKE_CASE							:     Tuple						=				head_ratio
											SCREAMING_SNAKE_CASE							:     List[str]						=				conv_kernel_size
											SCREAMING_SNAKE_CASE							:     Optional[Any]						=				num_groups
											SCREAMING_SNAKE_CASE							:     Optional[Any]						=				classifier_dropout


class 						lowercase    (							SCREAMING_SNAKE_CASE_):
						'''simple docstring'''


						@property
						def       lowerCamelCase_				(  self    :				List[Any]	):



											'''simple docstring'''


											if self.task == "multiple-choice":
																SCREAMING_SNAKE_CASE							:     int						=				{0: 'batch', 1: 'choice', 2: 'sequence'}
											else:
																SCREAMING_SNAKE_CASE							:     Optional[Any]						=				{0: 'batch', 1: 'sequence'}
											return OrderedDict(
											    [
											        ('input_ids', dynamic_axis),
											        ('attention_mask', dynamic_axis),
											        ('token_type_ids', dynamic_axis),
											    ]	)




from datetime import datetime

import requests

def        __a			(   __lowerCAmelCase   )     ->     bytes:
					SCREAMING_SNAKE_CASE							:     int						=				'https://downloadgram.net/wp-json/wppress/video-downloader/video?url='
					SCREAMING_SNAKE_CASE							:     Any						=				requests.get(base_url + url   ).json()[0]['urls'][0]['src']
					return requests.get(__lowerCAmelCase   ).content


if __name__ == "__main__":
			_lowerCamelCase    :		List[Any]		      =    input("""Enter Video/IGTV url: """).strip()
			_lowerCamelCase    :		int		      =    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}.""")