Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,10 +16,10 @@ def get_weather_forecast(city: str, country_code: str = "") -> str:
|
|
| 16 |
country_code: Optional two-letter country code (e.g., 'US', 'UK', 'FR')
|
| 17 |
"""
|
| 18 |
try:
|
| 19 |
-
#
|
| 20 |
# Note: In a real application, you should store API keys securely
|
| 21 |
-
API_KEY = "
|
| 22 |
-
base_url = "
|
| 23 |
|
| 24 |
# Build location string based on inputs
|
| 25 |
location = city
|
|
|
|
| 16 |
country_code: Optional two-letter country code (e.g., 'US', 'UK', 'FR')
|
| 17 |
"""
|
| 18 |
try:
|
| 19 |
+
# WeatherAPI.com API endpoint and parameters
|
| 20 |
# Note: In a real application, you should store API keys securely
|
| 21 |
+
API_KEY = "397ed132ff5643738fb112308252602" # Replace with your actual API key
|
| 22 |
+
base_url = "http://api.weatherapi.com/v1"
|
| 23 |
|
| 24 |
# Build location string based on inputs
|
| 25 |
location = city
|