






from ...processing_utils import ProcessorMixin





class 					A__     (     __snake_case ):

     '''simple docstring'''






     snake_case__					=					"""WhisperFeatureExtractor"""
     snake_case__					=					"""WhisperTokenizer"""







     def __init__( self      :    Optional[Any]   ,						_SCREAMING_SNAKE_CASE      :    Optional[int]   ,						_SCREAMING_SNAKE_CASE      :    List[str] ):






           """simple docstring"""




           super().__init__(_SCREAMING_SNAKE_CASE   ,						_SCREAMING_SNAKE_CASE )
           UpperCamelCase					       =  self.feature_extractor
           UpperCamelCase					       =  False







     def   _SCREAMING_SNAKE_CASE     ( self      :    List[Any]   ,						_SCREAMING_SNAKE_CASE      :    Union[str, Any]=None   ,						_SCREAMING_SNAKE_CASE      :    Dict=None   ,						_SCREAMING_SNAKE_CASE      :    List[str]=True ):






           """simple docstring"""




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







     def __call__( self      :    List[Any]   ,						*_SCREAMING_SNAKE_CASE      :    List[Any]   ,						**_SCREAMING_SNAKE_CASE      :    List[Any] ):






           """simple docstring"""




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

           UpperCamelCase					       =  kwargs.pop('audio'   ,						_SCREAMING_SNAKE_CASE )
           UpperCamelCase					       =  kwargs.pop('sampling_rate'   ,						_SCREAMING_SNAKE_CASE )
           UpperCamelCase					       =  kwargs.pop('text'   ,						_SCREAMING_SNAKE_CASE )
           if len(_SCREAMING_SNAKE_CASE ) > 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(_SCREAMING_SNAKE_CASE   ,						*_SCREAMING_SNAKE_CASE   ,						sampling_rate=_SCREAMING_SNAKE_CASE   ,						**_SCREAMING_SNAKE_CASE )
           if text is not None:
                 UpperCamelCase					       =  self.tokenizer(_SCREAMING_SNAKE_CASE   ,						**_SCREAMING_SNAKE_CASE )

           if text is None:
                 return inputs

           elif audio is None:
                 return encodings
           else:
                 UpperCamelCase					       =  encodings['input_ids']
                 return inputs







     def   _SCREAMING_SNAKE_CASE     ( self      :    Dict   ,						*_SCREAMING_SNAKE_CASE      :    Tuple   ,						**_SCREAMING_SNAKE_CASE      :    Dict ):






           """simple docstring"""




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







     def   _SCREAMING_SNAKE_CASE     ( self      :    Dict   ,						*_SCREAMING_SNAKE_CASE      :    Dict   ,						**_SCREAMING_SNAKE_CASE      :    str ):






           """simple docstring"""




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







     def   _SCREAMING_SNAKE_CASE     ( self      :    Optional[Any]   ,						_SCREAMING_SNAKE_CASE      :    str   ,						_SCREAMING_SNAKE_CASE      :    List[Any]="np" ):






           """simple docstring"""




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











from collections.abc import Sequence
def 		lowercase__  (				_UpperCamelCase       ,							_UpperCamelCase) ->			float:
      """simple docstring"""

      return sum(c * (x**i) for i, c in enumerate(_UpperCamelCase))
def 		lowercase__  (				_UpperCamelCase       ,							_UpperCamelCase) ->			float:
      """simple docstring"""

      UpperCamelCase					       =  0.0
      for coeff in reversed(_UpperCamelCase):
            UpperCamelCase					       =  result * x + coeff
      return result


if __name__ == "__main__":
       __magic_name__   :  Union[str, Any]        =							(0.0, 0.0, 5.0, 9.3, 7.0)
       __magic_name__   :  List[str]        =							10.0
       print(evaluate_poly(poly, x))
       print(horner(poly, x))



