Spaces:
Sleeping
Sleeping
fix
Browse files
app.py
CHANGED
|
@@ -49,7 +49,7 @@ def get_population(country:str)-> str: #it's import to specify the return type
|
|
| 49 |
def get_weather(city:str) -> str:
|
| 50 |
API_KEY = os.getenv("WAPI")
|
| 51 |
CITY = "New York"
|
| 52 |
-
URL = f"http://api.weatherapi.com/v1/current.json?key={API_KEY}&q={CITY}&aqi=no
|
| 53 |
response = requests.get(URL)
|
| 54 |
if response.status_code == 200:
|
| 55 |
data = response.json()
|
|
|
|
| 49 |
def get_weather(city:str) -> str:
|
| 50 |
API_KEY = os.getenv("WAPI")
|
| 51 |
CITY = "New York"
|
| 52 |
+
URL = f"http://api.weatherapi.com/v1/current.json?key={API_KEY}&q={CITY}&aqi=no"
|
| 53 |
response = requests.get(URL)
|
| 54 |
if response.status_code == 200:
|
| 55 |
data = response.json()
|