Chikeka commited on
Commit
f665351
·
verified ·
1 Parent(s): faf0a61

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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
- # OpenWeatherMap API endpoint and parameters
20
  # Note: In a real application, you should store API keys securely
21
- API_KEY = "ae97af4af685444a75e9de44e84fc5a4" # Replace with your actual API key
22
- base_url = "https://api.openweathermap.org/data/2.5/weather"
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