

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


A_	:			Optional[Any]  	=      logging.get_logger(__name__)

A_	:			List[str]  	=      {'ctrl': 'https://huggingface.co/ctrl/resolve/main/config.json'}



class    _a						(_a    ):


					'''simple docstring'''






					UpperCAmelCase__:       Dict  							=	'''ctrl'''
					UpperCAmelCase__:       Optional[Any]  							=	['''past_key_values''']
					UpperCAmelCase__:       Any  							=	{
					    '''max_position_embeddings''': '''n_positions''',
					    '''hidden_size''': '''n_embd''',
					    '''num_attention_heads''': '''n_head''',
					    '''num_hidden_layers''': '''n_layer''',
					}






					def __init__(			self   ,	A__=24_6534   ,	A__=256   ,	A__=1280   ,	A__=8192   ,	A__=48   ,	A__=16   ,	A__=0.1   ,	A__=0.1   ,	A__=1e-6   ,	A__=0.0_2   ,	A__=True   ,	**A__   ,	):
						A__							:   str					       =		vocab_size
						A__							:   List[Any]					       =		n_positions
						A__							:   Dict					       =		n_embd
						A__							:   Dict					       =		n_layer
						A__							:   Optional[Any]					       =		n_head
						A__							:   List[Any]					       =		dff
						A__							:   Dict					       =		resid_pdrop
						A__							:   Optional[Any]					       =		embd_pdrop
						A__							:   List[Any]					       =		layer_norm_epsilon
						A__							:   List[Any]					       =		initializer_range

						A__							:   Optional[int]					       =		use_cache

						super().__init__(**snake_case_      )






import requests

A_	:			List[Any]  	=      'YOUR API KEY'

def 						UpperCamelCase (lowercase_:			str   ,				lowercase_:			str = giphy_api_key )					->				list:
	A__							:   Dict					       =		"""+""".join(query.split() )
	A__							:   Optional[int]					       =		f"""https://api.giphy.com/v1/gifs/search?q={formatted_query}&api_key={api_key}"""
	A__							:   Any					       =		requests.get(lowercase_ ).json()["""data"""]
	return [gif["url"] for gif in gifs]


if __name__ == "__main__":
	print('\n'.join(get_gifs('space ship')))



