


"""simple docstring"""
def 						lowercase				(	_snake_case		: int	)	->int:
	"""simple docstring"""





	if number != int(_snake_case	):
		raise ValueError('''factorial() only accepts integral values'''	)
	if number < 0:
		raise ValueError('''factorial() not defined for negative values'''	)
	__snake_case      :		Any         =							1
	for i in range(1	,  number + 1	):
		value *= i
	return value






def 						lowercase				(	_snake_case		: int	)	->int:
	"""simple docstring"""





	if not isinstance(_snake_case	,  _snake_case	):
		raise ValueError('''factorial() only accepts integral values'''	)
	if n < 0:
		raise ValueError('''factorial() not defined for negative values'''	)
	return 1 if n == 0 or n == 1 else n * factorial(n - 1	)


if __name__ == "__main__":
			import doctest

			doctest.testmod()

			SCREAMING_SNAKE_CASE					:       Optional[int]							   =							int(input("""Enter a positive integer: """).strip() or 0)
			print(F'factorial{n} is {factorial(n)}')













from ...utils import (
    OptionalDependencyNotAvailable,
    is_torch_available,
    is_transformers_available,
    is_transformers_version,
)


try:
		if not (is_transformers_available() and is_torch_available() and is_transformers_version('''>=''', '''4.27.0''')):
				raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
		from ...utils.dummy_torch_and_transformers_objects import (
		    AudioLDMPipeline,
		)
else:
		from .pipeline_audioldm import AudioLDMPipeline

