



"""simple docstring"""







import unittest

from transformers import load_tool

from .test_tools_common import ToolTesterMixin


lowercase__		:    Dict				   =     """
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 				UpperCamelCase__       (     unittest.TestCase, lowercase_  ):




      """simple docstring"""




      def 					SCREAMING_SNAKE_CASE__			(				self    :				Optional[int]	):
        lowerCAmelCase_       :    List[str]								=			load_tool('text-question-answering'	)
        self.tool.setup()
        lowerCAmelCase_       :    Dict								=			load_tool('text-question-answering'   ,      remote=SCREAMING_SNAKE_CASE_	)



      def 					SCREAMING_SNAKE_CASE__			(				self    :				int	):
        lowerCAmelCase_       :    List[str]								=			self.tool(SCREAMING_SNAKE_CASE_   ,      'What did Hugging Face do in April 2021?'	)
        self.assertEqual(SCREAMING_SNAKE_CASE_   ,      'launched the BigScience Research Workshop'	)



      def 					SCREAMING_SNAKE_CASE__			(				self    :				Dict	):
        lowerCAmelCase_       :    List[Any]								=			self.remote_tool(SCREAMING_SNAKE_CASE_   ,      'What did Hugging Face do in April 2021?'	)
        self.assertEqual(SCREAMING_SNAKE_CASE_   ,      'launched the BigScience Research Workshop'	)



      def 					SCREAMING_SNAKE_CASE__			(				self    :				Tuple	):
        lowerCAmelCase_       :    Any								=			self.tool(text=SCREAMING_SNAKE_CASE_   ,      question='What did Hugging Face do in April 2021?'	)
        self.assertEqual(SCREAMING_SNAKE_CASE_   ,      'launched the BigScience Research Workshop'	)





      def 					SCREAMING_SNAKE_CASE__			(				self    :				Tuple	):
        lowerCAmelCase_       :    Tuple								=			self.remote_tool(text=SCREAMING_SNAKE_CASE_   ,      question='What did Hugging Face do in April 2021?'	)
        self.assertEqual(SCREAMING_SNAKE_CASE_   ,      'launched the BigScience Research Workshop'	)










"""simple docstring"""







import baseaa

def     UpperCamelCase_   (   lowerCAmelCase__				:    str						)						->       bytes:

  """simple docstring"""




  return baseaa.aaaencode(string.encode('utf-8'						)						)

def     UpperCamelCase_   (   lowerCAmelCase__				:    bytes						)						->       str:

  """simple docstring"""




  return baseaa.aaadecode(lowerCAmelCase__						).decode('utf-8'						)


if __name__ == "__main__":
     import doctest

     doctest.testmod()





