





from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_speech_available, is_torch_available


UpperCAmelCase_ 							=       {
    """configuration_audio_spectrogram_transformer""": [
        """AUDIO_SPECTROGRAM_TRANSFORMER_PRETRAINED_CONFIG_ARCHIVE_MAP""",
        """ASTConfig""",
    ]
}

try:
     if not is_torch_available():
          raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
     pass
else:
     UpperCAmelCase_ 							=       [
         """AUDIO_SPECTROGRAM_TRANSFORMER_PRETRAINED_MODEL_ARCHIVE_LIST""",
         """ASTForAudioClassification""",
         """ASTModel""",
         """ASTPreTrainedModel""",
     ]

try:
     if not is_speech_available():
          raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
     pass
else:
     UpperCAmelCase_ 							=       ["""ASTFeatureExtractor"""]

if TYPE_CHECKING:
     from .configuration_audio_spectrogram_transformer import (
         AUDIO_SPECTROGRAM_TRANSFORMER_PRETRAINED_CONFIG_ARCHIVE_MAP,
         ASTConfig,
     )

     try:
          if not is_torch_available():
               raise OptionalDependencyNotAvailable()
     except OptionalDependencyNotAvailable:
          pass
     else:
          from .modeling_audio_spectrogram_transformer import (
              AUDIO_SPECTROGRAM_TRANSFORMER_PRETRAINED_MODEL_ARCHIVE_LIST,
              ASTForAudioClassification,
              ASTModel,
              ASTPreTrainedModel,
          )

     try:
          if not is_speech_available():
               raise OptionalDependencyNotAvailable()
     except OptionalDependencyNotAvailable:
          pass
     else:
          from .feature_extraction_audio_spectrogram_transformer import ASTFeatureExtractor


else:
     import sys

     UpperCAmelCase_ 							=       _LazyModule(__name__, globals()["""__file__"""], _import_structure, module_spec=__spec__)










import warnings

from ...utils import logging
from .image_processing_flava import FlavaImageProcessor


UpperCAmelCase_ 							=       logging.get_logger(__name__)
class      UpperCamelCase_						(					_lowerCamelCase   ):




					def __init__(						self			,  *lowerCAmelCase_			,  **lowerCAmelCase_					)						->							None:
										warnings.warn(
										    'The class FlavaFeatureExtractor is deprecated and will be removed in version 5 of Transformers. Please'
										    ' use FlavaImageProcessor instead.'			,  lowerCAmelCase_			,  )
										super().__init__(*lowerCAmelCase_			,  **lowerCAmelCase_					)



