


"""simple docstring"""







import unittest

from transformers import load_tool

from .test_tools_common import ToolTesterMixin


__lowercase          = """
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       ,_a    ):







    """simple docstring"""




    def       __snake_case				(   self							:       Optional[Any]):
      a		:						List[Any] 				=     load_tool("summarization")
      self.tool.setup()
      a		:						str 				=     load_tool("summarization"							,					remote=__UpperCAmelCase)






    def       __snake_case				(   self							:       int):
      a		:						List[Any] 				=     self.tool(__UpperCAmelCase)
      self.assertEqual(
          __UpperCAmelCase							,					"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       __snake_case				(   self							:       Dict):
      a		:						Dict 				=     self.remote_tool(__UpperCAmelCase)
      self.assertEqual(
          __UpperCAmelCase							,					"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       __snake_case				(   self							:       List[Any]):
      a		:						str 				=     self.tool(text=__UpperCAmelCase)
      self.assertEqual(
          __UpperCAmelCase							,					"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       __snake_case				(   self							:       Any):
      a		:						Union[str, Any] 				=     self.remote_tool(text=__UpperCAmelCase)
      self.assertEqual(
          __UpperCAmelCase							,					"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."							,					)










"""simple docstring"""







import warnings

from ...utils import logging
from .image_processing_levit import LevitImageProcessor


__lowercase          = logging.get_logger(__name__)






class 		_A    (    _a    ):







    """simple docstring"""




    def __init__(   self							:       Optional[int]							,					*__UpperCAmelCase							:       Dict							,					**__UpperCAmelCase							:       Any):
      warnings.warn(
          "The class LevitFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please"
          " use LevitImageProcessor instead."							,					__UpperCAmelCase							,					)
      super().__init__(*__UpperCAmelCase							,					**__UpperCAmelCase)






