




"""simple docstring"""




import unittest

from transformers import load_tool

from .test_tools_common import ToolTesterMixin


lowerCAmelCase				:     List[Any]					=				"""
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        __magic_name__				(			unittest.TestCase		,   UpperCAmelCase__							):






				'''simple docstring'''





				def   _lowerCAmelCase							(			self					):





							"""simple docstring"""
							lowerCamelCase      =   load_tool("""text-question-answering"""					)
							self.tool.setup()
							lowerCamelCase      =   load_tool("""text-question-answering"""						,					remote=_a					)





				def   _lowerCAmelCase							(			self					):





							"""simple docstring"""
							lowerCamelCase      =   self.tool(_a						,					"""What did Hugging Face do in April 2021?"""					)
							self.assertEqual(_a						,					"""launched the BigScience Research Workshop"""					)





				def   _lowerCAmelCase							(			self					):





							"""simple docstring"""
							lowerCamelCase      =   self.remote_tool(_a						,					"""What did Hugging Face do in April 2021?"""					)
							self.assertEqual(_a						,					"""launched the BigScience Research Workshop"""					)





				def   _lowerCAmelCase							(			self					):





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





				def   _lowerCAmelCase							(			self					):





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









"""simple docstring"""




import warnings

from .generation import TFGenerationMixin






class        __magic_name__				(			UpperCAmelCase__							):






				'''simple docstring'''
				# warning at import time
				warnings.warn(
				    "Importing `TFGenerationMixin` from `src/transformers/generation_tf_utils.py` is deprecated and will "
				    "be removed in Transformers v5. Import as `from transformers import TFGenerationMixin` instead."		,   UpperCAmelCase__		,   )



