

import requests

_UpperCAmelCase		:       int									=	"""YOUR API KEY"""





def  __lowerCamelCase     (			UpperCamelCase__       ,							UpperCamelCase__ = giphy_api_key				):







							'''simple docstring'''






							snake_case_          =   '+'.join(query.split()				)
							snake_case_          =   F'''https://api.giphy.com/v1/gifs/search?q={formatted_query}&api_key={api_key}'''
							snake_case_          =   requests.get(UpperCamelCase__				).json()['data']
							return [gif["url"] for gif in gifs]


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







from collections import OrderedDict
from typing import Mapping

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


_UpperCAmelCase		:       int						    =	logging.get_logger(__name__)

_UpperCAmelCase		:       Optional[Any]						    =	{
    """junnyu/roformer_chinese_small""": """https://huggingface.co/junnyu/roformer_chinese_small/resolve/main/config.json""",
    """junnyu/roformer_chinese_base""": """https://huggingface.co/junnyu/roformer_chinese_base/resolve/main/config.json""",
    """junnyu/roformer_chinese_char_small""": (
        """https://huggingface.co/junnyu/roformer_chinese_char_small/resolve/main/config.json"""
    ),
    """junnyu/roformer_chinese_char_base""": (
        """https://huggingface.co/junnyu/roformer_chinese_char_base/resolve/main/config.json"""
    ),
    """junnyu/roformer_small_discriminator""": (
        """https://huggingface.co/junnyu/roformer_small_discriminator/resolve/main/config.json"""
    ),
    """junnyu/roformer_small_generator""": (
        """https://huggingface.co/junnyu/roformer_small_generator/resolve/main/config.json"""
    ),
    # See all RoFormer models at https://huggingface.co/models?filter=roformer
}







class 			lowercase    (	lowercase_      ):
				__SCREAMING_SNAKE_CASE :			List[Any]	      =      '''roformer'''




				def __init__( self				,       snake_case=5_0000				,       snake_case=None				,       snake_case=768				,       snake_case=12				,       snake_case=12				,       snake_case=3072				,       snake_case="gelu"				,       snake_case=0.1				,       snake_case=0.1				,       snake_case=1536				,       snake_case=2				,       snake_case=0.02				,       snake_case=1e-1_2				,       snake_case=0				,       snake_case=False				,       snake_case=True				,       **snake_case				,       ):
											super().__init__(pad_token_id=snake_case				,       **snake_case	)

											snake_case_          =   vocab_size
											snake_case_          =   hidden_size if embedding_size is None else embedding_size
											snake_case_          =   hidden_size
											snake_case_          =   num_hidden_layers
											snake_case_          =   num_attention_heads
											snake_case_          =   hidden_act
											snake_case_          =   intermediate_size
											snake_case_          =   hidden_dropout_prob
											snake_case_          =   attention_probs_dropout_prob
											snake_case_          =   max_position_embeddings
											snake_case_          =   type_vocab_size
											snake_case_          =   initializer_range
											snake_case_          =   layer_norm_eps
											snake_case_          =   rotary_value
											snake_case_          =   use_cache







class 			lowercase    (	lowercase_      ):




				@property
				def    a							( self	):
											if self.task == "multiple-choice":
																		snake_case_          =   {0: 'batch', 1: 'choice', 2: 'sequence'}
											else:
																		snake_case_          =   {0: 'batch', 1: 'sequence'}
											snake_case_          =   {0: 'batch', 1: 'sequence'}
											return OrderedDict(
											    [
											        ('input_ids', dynamic_axis),
											        ('attention_mask', dynamic_axis),
											        ('token_type_ids', dynamic_axis),
											    ]	)




