





"""simple docstring"""




from ..models.whisper import WhisperForConditionalGeneration, WhisperProcessor
from .base import PipelineTool







class     __lowerCAmelCase	(   A_):
      _lowercase    : Optional[int]            =      """openai/whisper-base"""
      _lowercase    : str            =      (
          """This is a tool that transcribes an audio into text. It takes an input named `audio` and returns the """
          """transcribed text."""
      )
      _lowercase    : int            =      """transcriber"""
      _lowercase    : Any            =      WhisperProcessor
      _lowercase    : str            =      WhisperForConditionalGeneration

      _lowercase    : Tuple            =      ["""audio"""]
      _lowercase    : Union[str, Any]            =      ["""text"""]







      def        _lowercase  (   self		,				lowerCAmelCase__							)       ->						Union[str, Any]:



        '''simple docstring'''




        return self.pre_processor(_lowerCamelCase		,				return_tensors="pt"							).input_features







      def        _lowercase  (   self		,				lowerCAmelCase__							)       ->						Dict:



        '''simple docstring'''




        return self.model.generate(inputs=_lowerCamelCase							)







      def        _lowercase  (   self		,				lowerCAmelCase__							)       ->						Dict:



        '''simple docstring'''




        return self.pre_processor.batch_decode(_lowerCamelCase		,				skip_special_tokens=_lowerCamelCase							)[0]













from __future__ import annotations

import math
def 					_A	(		SCREAMING_SNAKE_CASE					:       int						):





  """simple docstring"""



  if num <= 0:
    a__     : List[str]  =f'''{num}: Invalid input, please enter a positive integer.'''
    raise ValueError(SCREAMING_SNAKE_CASE						)

  a__     : Union[str, Any]  =[True] * (num + 1)
  a__     : Union[str, Any]  =[]
  a__     : str  =2
  a__     : Any  =int(math.sqrt(SCREAMING_SNAKE_CASE						)						)

  while start <= end:
    # If start is a prime
    if sieve[start] is True:
      prime.append(SCREAMING_SNAKE_CASE						)

      # Set multiples of start be False
      for i in range(start * start	,	num + 1	,	SCREAMING_SNAKE_CASE						):
        if sieve[i] is True:
          a__     : Optional[int]  =False

    start += 1

  for j in range(end + 1	,	num + 1						):
    if sieve[j] is True:
      prime.append(SCREAMING_SNAKE_CASE						)

  return prime


if __name__ == "__main__":
     print(prime_sieve(int(input("""Enter a positive integer: """).strip())))






