

"""simple docstring"""




from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available


_lowercase   :	int												=						{'configuration_sew': ['SEW_PRETRAINED_CONFIG_ARCHIVE_MAP', 'SEWConfig']}

try:
				if not is_torch_available():
								raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
				pass
else:
				_lowercase   :	Tuple												=						[
				    'SEW_PRETRAINED_MODEL_ARCHIVE_LIST',
				    'SEWForCTC',
				    'SEWForSequenceClassification',
				    'SEWModel',
				    'SEWPreTrainedModel',
				]

if TYPE_CHECKING:
				from .configuration_sew import SEW_PRETRAINED_CONFIG_ARCHIVE_MAP, SEWConfig

				try:
								if not is_torch_available():
												raise OptionalDependencyNotAvailable()
				except OptionalDependencyNotAvailable:
								pass
				else:
								from .modeling_sew import (
								    SEW_PRETRAINED_MODEL_ARCHIVE_LIST,
								    SEWForCTC,
								    SEWForSequenceClassification,
								    SEWModel,
								    SEWPreTrainedModel,
								)


else:
				import sys

				_lowercase   :	Tuple												=						_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




