

'''simple docstring'''

import unittest

from transformers import load_tool

from .test_tools_common import ToolTesterMixin


A_				  =							"""
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 							_snake_case       (				unittest.TestCase		,     a_  ):
   def 			__UpperCamelCase  (       self	:					Union[str, Any]							):
     SCREAMING_SNAKE_CASE:Tuple  					=    load_tool("text-question-answering"							)
     self.tool.setup()
     SCREAMING_SNAKE_CASE:Dict  					=    load_tool("text-question-answering"   ,remote=_a							)
   def 			__UpperCamelCase  (       self	:					Optional[Any]							):
     SCREAMING_SNAKE_CASE:str  					=    self.tool(_a   ,"What did Hugging Face do in April 2021?"							)
     self.assertEqual(_a   ,"launched the BigScience Research Workshop"							)
   def 			__UpperCamelCase  (       self	:					Tuple							):
     SCREAMING_SNAKE_CASE:Union[str, Any]  					=    self.remote_tool(_a   ,"What did Hugging Face do in April 2021?"							)
     self.assertEqual(_a   ,"launched the BigScience Research Workshop"							)
   def 			__UpperCamelCase  (       self	:					Dict							):
     SCREAMING_SNAKE_CASE:int  					=    self.tool(text=_a   ,question="What did Hugging Face do in April 2021?"							)
     self.assertEqual(_a   ,"launched the BigScience Research Workshop"							)







   def 			__UpperCamelCase  (       self	:					List[Any]							):
     SCREAMING_SNAKE_CASE:Optional[Any]  					=    self.remote_tool(text=_a   ,question="What did Hugging Face do in April 2021?"							)
     self.assertEqual(_a   ,"launched the BigScience Research Workshop"							)








"""simple docstring"""




def   __magic_name__	(      __snake_case				:       int     , __snake_case				:       int     , __snake_case				:       int  ) ->				float:
       lowercase    :				List[Any]       		=							(num_of_terms / 2) * (2 * first_term + (num_of_terms - 1) * common_diff)
       # formula for sum of series
       return total


def   __magic_name__	(      ) ->				int:
       print(sum_of_series(1     , 1     , 10  )  )


if __name__ == "__main__":
   import doctest

   doctest.testmod()


