


import math






def 		lowercase_(  SCREAMING_SNAKE_CASE_	):


  '''simple docstring'''

  lowerCamelCase :					Any    =				[]
  lowerCamelCase :					int    =				2
  lowerCamelCase :					Dict    =				int(math.sqrt(SCREAMING_SNAKE_CASE_	)	)  # Size of every segment
  lowerCamelCase :					Dict    =				[True] * (end + 1)
  lowerCamelCase :					Optional[int]    =				[]

  while start <= end:
    if temp[start] is True:
      in_prime.append(SCREAMING_SNAKE_CASE_	)
      for i in range(start * start      ,						end + 1      ,						SCREAMING_SNAKE_CASE_	):
        lowerCamelCase :					Tuple    =				False
    start += 1
  prime += in_prime

  lowerCamelCase :					Any    =				end + 1
  lowerCamelCase :					Optional[int]    =				min(2 * end      ,						SCREAMING_SNAKE_CASE_	)

  while low <= n:
    lowerCamelCase :					str    =				[True] * (high - low + 1)
    for each in in_prime:
      lowerCamelCase :					List[Any]    =				math.floor(low / each	) * each
      if t < low:
        t += each

      for j in range(SCREAMING_SNAKE_CASE_      ,						high + 1      ,						SCREAMING_SNAKE_CASE_	):
        lowerCamelCase :					str    =				False

    for j in range(len(SCREAMING_SNAKE_CASE_	)	):
      if temp[j] is True:
        prime.append(j + low	)

    lowerCamelCase :					Optional[int]    =				high + 1
    lowerCamelCase :					Optional[int]    =				min(high + end      ,						SCREAMING_SNAKE_CASE_	)

  return prime







print(sieve(10**6))







# Copyright 2023 The HuggingFace Inc. team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from ..models.whisper import WhisperForConditionalGeneration, WhisperProcessor
from .base import PipelineTool
class 	UpperCAmelCase_					(					UpperCamelCase    ):

   '''simple docstring'''




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

   __A :      Any     		=		["audio"]
   __A :      List[str]     		=		["text"]






   def _snake_case    (		self						,				__A ):






     """simple docstring"""





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






   def _snake_case    (		self						,				__A ):






     """simple docstring"""





     return self.model.generate(inputs=__A )






   def _snake_case    (		self						,				__A ):






     """simple docstring"""





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



