Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -68,6 +68,8 @@ def get_pollen_category_from_index(index_value):
|
|
68 |
return "HIGH"
|
69 |
else:
|
70 |
return "VERY_HIGH"
|
|
|
|
|
71 |
"""Fetch pollen data from Google Pollen API"""
|
72 |
if not GOOGLE_API_KEY:
|
73 |
return "Error: Google API key not found. Please set GOOGLE_API_KEY as a secret."
|
|
|
68 |
return "HIGH"
|
69 |
else:
|
70 |
return "VERY_HIGH"
|
71 |
+
|
72 |
+
def get_pollen_data(lat, lon, days=5):
|
73 |
"""Fetch pollen data from Google Pollen API"""
|
74 |
if not GOOGLE_API_KEY:
|
75 |
return "Error: Google API key not found. Please set GOOGLE_API_KEY as a secret."
|