


'''simple docstring'''



import copy

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


__lowercase      :		str			=      logging.get_logger(__name__)





class 				__UpperCamelCase							(						__snake_case   ):
	A_           =       "encoder-decoder"
	A_           =       True




	def __init__(  self		,							**__a				):

						'''simple docstring'''





						super().__init__(**a__				)
						assert (
						    "encoder" in kwargs and "decoder" in kwargs
						), "Config has to be initialized with encoder and decoder config"
						__a     :			Tuple          =    kwargs.pop('encoder'				)
						__a     :			Union[str, Any]          =    encoder_config.pop('model_type'				)
						__a     :			List[Any]          =    kwargs.pop('decoder'				)
						__a     :			str          =    decoder_config.pop('model_type'				)

						from ..auto.configuration_auto import AutoConfig

						__a     :			str          =    AutoConfig.for_model(a__		,							**a__				)
						__a     :			List[Any]          =    AutoConfig.for_model(a__		,							**a__				)
						__a     :			int          =    True




	@classmethod
	def  __UpperCAmelCase				(  cls		,							__a		,							__a		,							**__a				):

						'''simple docstring'''





						logger.info('Set `config.is_decoder=True` and `config.add_cross_attention=True` for decoder_config'				)
						__a     :			Optional[Any]          =    True
						__a     :			Optional[Any]          =    True

						return cls(encoder=encoder_config.to_dict()		,							decoder=decoder_config.to_dict()		,							**a__				)





	def  __UpperCAmelCase				(  self				):

						'''simple docstring'''





						__a     :			Optional[int]          =    copy.deepcopy(self.__dict__				)
						__a     :			Optional[Any]          =    self.encoder.to_dict()
						__a     :			int          =    self.decoder.to_dict()
						__a     :			str          =    self.__class__.model_type
						return output







import requests
from bsa import BeautifulSoup





def 	_lowerCAmelCase					( UpperCamelCase__:  str = "https://www.worldometers.info/coronavirus"    )			-> dict:





	"""simple docstring"""







	A             =					BeautifulSoup(requests.get(UpperCamelCase__    ).text				,       """html.parser"""    )
	A             =					soup.findAll("""h1"""    )
	A             =					soup.findAll("""div"""				,       {"""class""": """maincounter-number"""}    )
	keys += soup.findAll("""span"""				,       {"""class""": """panel-title"""}    )
	values += soup.findAll("""div"""				,       {"""class""": """number-table-main"""}    )
	return {key.text.strip(): value.text.strip() for key, value in zip(UpperCamelCase__				,       UpperCamelCase__    )}


if __name__ == "__main__":
				print("\033[1m" + "COVID-19 Status of the World" + "\033[0m\n")
				for key, value in world_covidaa_stats().items():
								print(f'''{key}\n{value}\n''')



