

from typing import TYPE_CHECKING

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


UpperCAmelCase_							:					Optional[Any]		 =   {
    '''configuration_altclip''': [
        '''ALTCLIP_PRETRAINED_CONFIG_ARCHIVE_MAP''',
        '''AltCLIPConfig''',
        '''AltCLIPTextConfig''',
        '''AltCLIPVisionConfig''',
    ],
    '''processing_altclip''': ['''AltCLIPProcessor'''],
}

try:
			if not is_torch_available():
						raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
			pass
else:
			UpperCAmelCase_							:					List[str]		 =   [
			    '''ALTCLIP_PRETRAINED_MODEL_ARCHIVE_LIST''',
			    '''AltCLIPPreTrainedModel''',
			    '''AltCLIPModel''',
			    '''AltCLIPTextModel''',
			    '''AltCLIPVisionModel''',
			]


if TYPE_CHECKING:
			from .configuration_altclip import (
			    ALTCLIP_PRETRAINED_CONFIG_ARCHIVE_MAP,
			    AltCLIPConfig,
			    AltCLIPTextConfig,
			    AltCLIPVisionConfig,
			)
			from .processing_altclip import AltCLIPProcessor

			try:
						if not is_torch_available():
									raise OptionalDependencyNotAvailable()
			except OptionalDependencyNotAvailable:
						pass
			else:
						from .modeling_altclip import (
						    ALTCLIP_PRETRAINED_MODEL_ARCHIVE_LIST,
						    AltCLIPModel,
						    AltCLIPPreTrainedModel,
						    AltCLIPTextModel,
						    AltCLIPVisionModel,
						)


else:
			import sys

			UpperCAmelCase_							:					str		 =   _LazyModule(__name__, globals()['''__file__'''], _import_structure, module_spec=__spec__)









import requests
from bsa import BeautifulSoup
def 							UpperCamelCase_(					_A :str = "AAPL"	)->		str:
			UpperCamelCase__       =							F'''https://in.finance.yahoo.com/quote/{symbol}?s={symbol}'''
			UpperCamelCase__       =							BeautifulSoup(requests.get(_A	).text					,  "html.parser"	)
			UpperCamelCase__       =							"My(6px) Pos(r) smartphone_Mt(6px)"
			return soup.find("div"					,  class_=class_	).find("span"	).text


if __name__ == "__main__":
						for symbol in "AAPL AMZN IBM GOOG MSFT ORCL".split():
												print(f'''Current {symbol:<4} stock price is {stock_price(symbol):>8}''')


