# Copyright (c) Alibaba, Inc. and its affiliates.

from typing import TYPE_CHECKING

from modelscope.utils.import_utils import LazyImportModule

if TYPE_CHECKING:
    from .base import Exporter
    from .builder import build_exporter
    from .cv import CartoonTranslationExporter
    from .nlp import CsanmtForTranslationExporter
    from .tf_model_exporter import TfModelExporter
    from .nlp import SbertForSequenceClassificationExporter, SbertForZeroShotClassificationExporter
    from .torch_model_exporter import TorchModelExporter
    from .cv import FaceDetectionSCRFDExporter
else:
    _import_structure = {
        'base': ['Exporter'],
        'builder': ['build_exporter'],
        'cv': ['CartoonTranslationExporter', 'FaceDetectionSCRFDExporter'],
        'nlp': [
            'CsanmtForTranslationExporter',
            'SbertForSequenceClassificationExporter',
            'SbertForZeroShotClassificationExporter'
        ],
        'tf_model_exporter': ['TfModelExporter'],
        'torch_model_exporter': ['TorchModelExporter'],
    }

    import sys

    sys.modules[__name__] = LazyImportModule(
        __name__,
        globals()['__file__'],
        _import_structure,
        module_spec=__spec__,
        extra_objects={},
    )
