
import unittest

from transformers import load_tool

from .test_tools_common import ToolTesterMixin


__lowerCAmelCase			:     Dict           =   '\nHugging 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.\n\nIn March 2021, Hugging Face raised $40 million in a Series B funding round.[3]\n\nOn 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]\n'




class        UpperCAmelCase_			( unittest.TestCase  ,       _A     ):


  '''simple docstring'''







  def 							_lowercase							( self			: Union[str, Any]    )			->	Any:







    """simple docstring"""






    __magic_name__				     =       load_tool("""text-question-answering"""    )
    self.tool.setup()
    __magic_name__				     =       load_tool("""text-question-answering"""			,							remote=UpperCamelCase__    )
  def 							_lowercase							( self			: Optional[int]    )			->	Union[str, Any]:







    """simple docstring"""






    __magic_name__				     =       self.tool(UpperCamelCase__			,							"""What did Hugging Face do in April 2021?"""    )
    self.assertEqual(UpperCamelCase__			,							"""launched the BigScience Research Workshop"""    )
  def 							_lowercase							( self			: List[str]    )			->	int:







    """simple docstring"""






    __magic_name__				     =       self.remote_tool(UpperCamelCase__			,							"""What did Hugging Face do in April 2021?"""    )
    self.assertEqual(UpperCamelCase__			,							"""launched the BigScience Research Workshop"""    )
  def 							_lowercase							( self			: Any    )			->	Optional[Any]:







    """simple docstring"""






    __magic_name__				     =       self.tool(text=UpperCamelCase__			,							question="""What did Hugging Face do in April 2021?"""    )
    self.assertEqual(UpperCamelCase__			,							"""launched the BigScience Research Workshop"""    )





  def 							_lowercase							( self			: List[str]    )			->	Union[str, Any]:







    """simple docstring"""






    __magic_name__				     =       self.remote_tool(text=UpperCamelCase__			,							question="""What did Hugging Face do in April 2021?"""    )
    self.assertEqual(UpperCamelCase__			,							"""launched the BigScience Research Workshop"""    )








def      _A       (		SCREAMING_SNAKE_CASE     :   Optional[Any]						):





  """simple docstring"""



  a__	:					Optional[Any]										=len(SCREAMING_SNAKE_CASE						)
  while cur > 1:
    # Find the maximum number in arr
    a__	:					List[Any]										=arr.index(max(arr[0:cur]						)						)
    # Reverse from 0 to mi
    a__	:					int										=arr[mi::-1] + arr[mi + 1 : len(SCREAMING_SNAKE_CASE						)]
    # Reverse whole list
    a__	:					List[str]										=arr[cur - 1 :: -1] + arr[cur : len(SCREAMING_SNAKE_CASE						)]
    cur -= 1
  return arr


if __name__ == "__main__":
     UpperCAmelCase	:	int		     =       input("""Enter numbers separated by a comma:\n""").strip()
     UpperCAmelCase	:	Optional[int]		     =       [int(item) for item in user_input.split(""",""")]
     print(pancake_sort(unsorted))






