



from ...processing_utils import ProcessorMixin





class  __magic_name__   (							A__						):
		lowercase      :       List[str]          ='''WhisperFeatureExtractor'''
		lowercase      :       Any          ='''WhisperTokenizer'''






		def __init__(						self      :     Optional[int]				,		UpperCamelCase__      :     List[str]				,		UpperCamelCase__      :     Dict      )				->					int:
								'''simple docstring'''







								super().__init__(UpperCamelCase__				,		UpperCamelCase__      )
								UpperCAmelCase         =     self.feature_extractor
								UpperCAmelCase         =     False






		def SCREAMING_SNAKE_CASE_			(						self      :     Any				,		UpperCamelCase__      :     int=None				,		UpperCamelCase__      :     Union[str, Any]=None				,		UpperCamelCase__      :     Dict=True      )				->					Dict:
								'''simple docstring'''







								return self.tokenizer.get_decoder_prompt_ids(task=UpperCamelCase__				,		language=UpperCamelCase__				,		no_timestamps=UpperCamelCase__      )






		def __call__(						self      :     Dict				,		*UpperCamelCase__      :     Optional[int]				,		**UpperCamelCase__      :     Any      )				->					Dict:
								'''simple docstring'''







								if self._in_target_context_manager:
														return self.current_processor(*UpperCamelCase__				,		**UpperCamelCase__      )

								UpperCAmelCase         =     kwargs.pop("audio"				,		UpperCamelCase__      )
								UpperCAmelCase         =     kwargs.pop("sampling_rate"				,		UpperCamelCase__      )
								UpperCAmelCase         =     kwargs.pop("text"				,		UpperCamelCase__      )
								if len(UpperCamelCase__      ) > 0:
														UpperCAmelCase         =     args[0]
														UpperCAmelCase         =     args[1:]

								if audio is None and text is None:
														raise ValueError("You need to specify either an `audio` or `text` input to process."      )

								if audio is not None:
														UpperCAmelCase         =     self.feature_extractor(UpperCamelCase__				,		*UpperCamelCase__				,		sampling_rate=UpperCamelCase__				,		**UpperCamelCase__      )
								if text is not None:
														UpperCAmelCase         =     self.tokenizer(UpperCamelCase__				,		**UpperCamelCase__      )

								if text is None:
														return inputs

								elif audio is None:
														return encodings
								else:
														UpperCAmelCase         =     encodings["input_ids"]
														return inputs






		def SCREAMING_SNAKE_CASE_			(						self      :     Tuple				,		*UpperCamelCase__      :     List[Any]				,		**UpperCamelCase__      :     int      )				->					List[Any]:
								'''simple docstring'''







								return self.tokenizer.batch_decode(*UpperCamelCase__				,		**UpperCamelCase__      )






		def SCREAMING_SNAKE_CASE_			(						self      :     int				,		*UpperCamelCase__      :     Dict				,		**UpperCamelCase__      :     List[Any]      )				->					str:
								'''simple docstring'''







								return self.tokenizer.decode(*UpperCamelCase__				,		**UpperCamelCase__      )







		def SCREAMING_SNAKE_CASE_			(						self      :     Any				,		UpperCamelCase__      :     str				,		UpperCamelCase__      :     Any="np"      )				->					List[str]:
								'''simple docstring'''







								return self.tokenizer.get_prompt_ids(UpperCamelCase__				,		return_tensors=UpperCamelCase__      )








def    lowerCamelCase_(lowerCamelCase_    ,   lowerCamelCase_    ) ->       list[int]:
						UpperCAmelCase         =     int(lowerCamelCase_    )

						# Initialize Result
						UpperCAmelCase         =     []

						# Traverse through all denomination
						for denomination in reversed(lowerCamelCase_    ):
												# Find denominations
												while int(lowerCamelCase_    ) >= int(lowerCamelCase_    ):
																		total_value -= int(lowerCamelCase_    )
																		answer.append(lowerCamelCase_    )  # Append the "answers" array

						return answer


# Driver Code
if __name__ == "__main__":
		__lowerCamelCase     :							Optional[int]  							=				[]
		__lowerCamelCase     :							Dict  							=				"0"

		if (
		    input("Do you want to enter your denominations ? (yY/n): ").strip().lower()
		    == "y"
		):
				__lowerCamelCase     :							List[Any]  							=				int(input("Enter the number of denominations you want to add: ").strip())

				for i in range(0, n):
						denominations.append(int(input(F'''Denomination {i}: ''').strip()))
				__lowerCamelCase     :							str  							=				input("Enter the change you want to make in Indian Currency: ").strip()
		else:
				# All denominations of Indian Currency if user does not enter
				__lowerCamelCase     :							Optional[int]  							=				[1, 2, 5, 10, 20, 50, 100, 500, 2_000]
				__lowerCamelCase     :							Optional[int]  							=				input("Enter the change you want to make: ").strip()

		if int(value) == 0 or int(value) < 0:
				print("The total value cannot be zero or negative.")

		else:
				print(F'''Following is minimal change for {value}: ''')
				__lowerCamelCase     :							Union[str, Any]  							=				find_minimum_change(denominations, value)
				# Print result
				for i in range(len(answer)):
						print(answer[i], end=" ")



