


from typing import TYPE_CHECKING

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


_SCREAMING_SNAKE_CASE     :					List[str]      =       {"configuration_vit_mae": ["VIT_MAE_PRETRAINED_CONFIG_ARCHIVE_MAP", "ViTMAEConfig"]}

try:
 if not is_torch_available():
  raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
 pass
else:
 _SCREAMING_SNAKE_CASE     :					Tuple      =       [
     "VIT_MAE_PRETRAINED_MODEL_ARCHIVE_LIST",
     "ViTMAEForPreTraining",
     "ViTMAELayer",
     "ViTMAEModel",
     "ViTMAEPreTrainedModel",
 ]

try:
 if not is_tf_available():
  raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
 pass
else:
 _SCREAMING_SNAKE_CASE     :					int      =       [
     "TFViTMAEForPreTraining",
     "TFViTMAEModel",
     "TFViTMAEPreTrainedModel",
 ]

if TYPE_CHECKING:
 from .configuration_vit_mae import VIT_MAE_PRETRAINED_CONFIG_ARCHIVE_MAP, ViTMAEConfig

 try:
  if not is_torch_available():
   raise OptionalDependencyNotAvailable()
 except OptionalDependencyNotAvailable:
  pass
 else:
  from .modeling_vit_mae import (
      VIT_MAE_PRETRAINED_MODEL_ARCHIVE_LIST,
      ViTMAEForPreTraining,
      ViTMAELayer,
      ViTMAEModel,
      ViTMAEPreTrainedModel,
  )

 try:
  if not is_tf_available():
   raise OptionalDependencyNotAvailable()
 except OptionalDependencyNotAvailable:
  pass
 else:
  from .modeling_tf_vit_mae import TFViTMAEForPreTraining, TFViTMAEModel, TFViTMAEPreTrainedModel


else:
 import sys

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








import requests

_SCREAMING_SNAKE_CASE     :					Optional[int]      =       ""  # <-- Put your OpenWeatherMap appid here!
_SCREAMING_SNAKE_CASE     :					Optional[Any]      =       "https://api.openweathermap.org/data/2.5/"
def      UpperCAmelCase__		(UpperCamelCase_ = "Chicago"				,UpperCamelCase_ = APPID							):



     """simple docstring"""






     return requests.get(URL_BASE + '''weather'''				,params=locals()							).json()
def      UpperCAmelCase__		(UpperCamelCase_ = "Kolkata, India"				,UpperCamelCase_ = APPID							):



     """simple docstring"""






     return requests.get(URL_BASE + '''forecast'''				,params=locals()							).json()
def      UpperCAmelCase__		(UpperCamelCase_ = 55.68				,UpperCamelCase_ = 12.57				,UpperCamelCase_ = APPID							):



     """simple docstring"""






     return requests.get(URL_BASE + '''onecall'''				,params=locals()							).json()


if __name__ == "__main__":
 from pprint import pprint

 while True:
  _SCREAMING_SNAKE_CASE     :					Any      =       input("Enter a location:").strip()
  if location:
   pprint(current_weather(location))
  else:
   break




