


import unittest

from transformers import load_tool

from .test_tools_common import ToolTesterMixin


lowerCamelCase		=						'''
Hugging Face was founded in 2016 by French entrepreneurs Clément Delangue, Julien Chaumond, and Thomas Wolf originally as a company that developed a chatbot app targeted at teenagers.[2] After open-sourcing the model behind the chatbot, the company pivoted to focus on being a platform for machine learning.

In March 2021, Hugging Face raised $40 million in a Series B funding round.[3]

On April 28, 2021, the company launched the BigScience Research Workshop in collaboration with several other research groups to release an open large language model.[4] In 2022, the workshop concluded with the announcement of BLOOM, a multilingual large language model with 176 billion parameters.[5]
'''





class    _a				(							unittest.TestCase	,		_lowercase):




	def 				UpperCAmelCase__(   self		:						List[Any]						)->			Tuple:
			lowerCAmelCase__  :     Tuple       	=   load_tool('''summarization'''						)
			self.tool.setup()
			lowerCAmelCase__  :     Union[str, Any]       	=   load_tool('''summarization'''						,   remote=_SCREAMING_SNAKE_CASE						)




	def 				UpperCAmelCase__(   self		:						Any						)->			Any:
			lowerCAmelCase__  :     str       	=   self.tool(_SCREAMING_SNAKE_CASE						)
			self.assertEqual(
			    _SCREAMING_SNAKE_CASE						,   '''Hugging Face was founded in 2016 by French entrepreneurs Clément Delangue, Julien Chaumond, and Thomas Wolf. In March 2021, Hugging Face raised $40 million in a Series B funding round. On April 28, 2021, the company launched the BigScience Research Workshop in collaboration with several other research groups to release an open large language model. In 2022, the workshop concluded with the announcement of BLOOM.'''						,   )




	def 				UpperCAmelCase__(   self		:						Dict						)->			Optional[int]:
			lowerCAmelCase__  :     Optional[int]       	=   self.remote_tool(_SCREAMING_SNAKE_CASE						)
			self.assertEqual(
			    _SCREAMING_SNAKE_CASE						,   '''Hugging Face was founded in 2016 by French entrepreneurs Clément Delangue, Julien Chaumond, and Thomas Wolf. In March 2021, Hugging Face raised $40 million in a Series B funding round. On April 28, 2021, the company launched the BigScience Research Workshop in collaboration with several other research groups to release an open large language model. In 2022, the workshop concluded with the announcement of BLOOM.'''						,   )




	def 				UpperCAmelCase__(   self		:						List[Any]						)->			Optional[Any]:
			lowerCAmelCase__  :     Optional[Any]       	=   self.tool(text=_SCREAMING_SNAKE_CASE						)
			self.assertEqual(
			    _SCREAMING_SNAKE_CASE						,   '''Hugging Face was founded in 2016 by French entrepreneurs Clément Delangue, Julien Chaumond, and Thomas Wolf. In March 2021, Hugging Face raised $40 million in a Series B funding round. On April 28, 2021, the company launched the BigScience Research Workshop in collaboration with several other research groups to release an open large language model. In 2022, the workshop concluded with the announcement of BLOOM.'''						,   )




	def 				UpperCAmelCase__(   self		:						Any						)->			Tuple:
			lowerCAmelCase__  :     str       	=   self.remote_tool(text=_SCREAMING_SNAKE_CASE						)
			self.assertEqual(
			    _SCREAMING_SNAKE_CASE						,   '''Hugging Face was founded in 2016 by French entrepreneurs Clément Delangue, Julien Chaumond, and Thomas Wolf. In March 2021, Hugging Face raised $40 million in a Series B funding round. On April 28, 2021, the company launched the BigScience Research Workshop in collaboration with several other research groups to release an open large language model. In 2022, the workshop concluded with the announcement of BLOOM.'''						,   )








import warnings

from ...utils import logging
from .image_processing_maskformer import MaskFormerImageProcessor


lowerCamelCase		=						logging.get_logger(__name__)





class    _a				(							_lowercase):




	def __init__(   self		:						Any						,   *_SCREAMING_SNAKE_CASE		:						int						,   **_SCREAMING_SNAKE_CASE		:						Dict						)->			None:
			warnings.warn(
			    '''The class MaskFormerFeatureExtractor is deprecated and will be removed in version 5 of Transformers.'''
			    ''' Please use MaskFormerImageProcessor instead.'''						,   _SCREAMING_SNAKE_CASE						,   )
			super().__init__(*_SCREAMING_SNAKE_CASE						,   **_SCREAMING_SNAKE_CASE						)




