


'''simple docstring'''





import unittest

from transformers import load_tool

from .test_tools_common import ToolTesterMixin


UpperCAmelCase__  			=				'''
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 					lowerCAmelCase     (  self							:			List[Any]	)      ->		Tuple:
						__A=	load_tool('text-question-answering'	)
						self.tool.setup()
						__A=	load_tool('text-question-answering'			,    remote=lowerCAmelCase_	)
			def 					lowerCAmelCase     (  self							:			Optional[int]	)      ->		Optional[int]:
						__A=	self.tool(lowerCAmelCase_			,    'What did Hugging Face do in April 2021?'	)
						self.assertEqual(lowerCAmelCase_			,    'launched the BigScience Research Workshop'	)
			def 					lowerCAmelCase     (  self							:			Dict	)      ->		str:
						__A=	self.remote_tool(lowerCAmelCase_			,    'What did Hugging Face do in April 2021?'	)
						self.assertEqual(lowerCAmelCase_			,    'launched the BigScience Research Workshop'	)
			def 					lowerCAmelCase     (  self							:			List[str]	)      ->		int:
						__A=	self.tool(text=lowerCAmelCase_			,    question='What did Hugging Face do in April 2021?'	)
						self.assertEqual(lowerCAmelCase_			,    'launched the BigScience Research Workshop'	)

			def 					lowerCAmelCase     (  self							:			Dict	)      ->		Dict:
						__A=	self.remote_tool(text=lowerCAmelCase_			,    question='What did Hugging Face do in April 2021?'	)
						self.assertEqual(lowerCAmelCase_			,    'launched the BigScience Research Workshop'	)







'''simple docstring'''





def 						UpperCAmelCase__(				_SCREAMING_SNAKE_CASE					: int,_SCREAMING_SNAKE_CASE					: int ):






			"""simple docstring"""




			return int((input_a, input_a).count(1 ) != 0 )






def 						UpperCAmelCase__(				):






			"""simple docstring"""




			assert or_gate(0,0 ) == 0
			assert or_gate(0,1 ) == 1
			assert or_gate(1,0 ) == 1
			assert or_gate(1,1 ) == 1


if __name__ == "__main__":
					print(or_gate(0, 1))
					print(or_gate(1, 0))
					print(or_gate(0, 0))
					print(or_gate(1, 1))



