



'''simple docstring'''






from typing import TYPE_CHECKING

from ..utils import (
    OptionalDependencyNotAvailable,
    _LazyModule,
    is_torch_available,
)


UpperCamelCase__:       Optional[Any]							     =      {
    "agents": ["Agent", "AzureOpenAiAgent", "HfAgent", "LocalAgent", "OpenAiAgent"],
    "base": ["PipelineTool", "RemoteTool", "Tool", "launch_gradio_demo", "load_tool"],
}

try:
						if not is_torch_available():
												raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
						pass
else:
						UpperCamelCase__:       List[Any]							     =      ["DocumentQuestionAnsweringTool"]
						UpperCamelCase__:       int							     =      ["ImageCaptioningTool"]
						UpperCamelCase__:       List[Any]							     =      ["ImageQuestionAnsweringTool"]
						UpperCamelCase__:       int							     =      ["ImageSegmentationTool"]
						UpperCamelCase__:       Dict							     =      ["SpeechToTextTool"]
						UpperCamelCase__:       Tuple							     =      ["TextClassificationTool"]
						UpperCamelCase__:       Optional[Any]							     =      ["TextQuestionAnsweringTool"]
						UpperCamelCase__:       str							     =      ["TextSummarizationTool"]
						UpperCamelCase__:       Union[str, Any]							     =      ["TextToSpeechTool"]
						UpperCamelCase__:       int							     =      ["TranslationTool"]

if TYPE_CHECKING:
						from .agents import Agent, AzureOpenAiAgent, HfAgent, LocalAgent, OpenAiAgent
						from .base import PipelineTool, RemoteTool, Tool, launch_gradio_demo, load_tool

						try:
												if not is_torch_available():
																		raise OptionalDependencyNotAvailable()
						except OptionalDependencyNotAvailable:
												pass
						else:
												from .document_question_answering import DocumentQuestionAnsweringTool
												from .image_captioning import ImageCaptioningTool
												from .image_question_answering import ImageQuestionAnsweringTool
												from .image_segmentation import ImageSegmentationTool
												from .speech_to_text import SpeechToTextTool
												from .text_classification import TextClassificationTool
												from .text_question_answering import TextQuestionAnsweringTool
												from .text_summarization import TextSummarizationTool
												from .text_to_speech import TextToSpeechTool
												from .translation import TranslationTool
else:
						import sys

						UpperCamelCase__:       str							     =      _LazyModule(__name__, globals()["__file__"], _import_structure, module_spec=__spec__)










'''simple docstring'''






UpperCamelCase__:       str							     =      [0.485, 0.456, 0.406]
UpperCamelCase__:       List[str]							     =      [0.229, 0.224, 0.225]
UpperCamelCase__:       List[str]							     =      [0.5, 0.5, 0.5]
UpperCamelCase__:       Optional[Any]							     =      [0.5, 0.5, 0.5]
UpperCamelCase__:       List[str]							     =      [0.48145466, 0.4578275, 0.40821073]
UpperCamelCase__:       List[str]							     =      [0.26862954, 0.26130258, 0.27577711]





