javiergrandat commited on
Commit
1fae9f8
·
verified ·
1 Parent(s): 69725d6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -27,7 +27,9 @@ def get_weather(latitude: float, longitude: float) -> str:
27
  """
28
  try:
29
  url = f"https://api.open-meteo.com/v1/forecast?latitude={latitude}&longitude={longitude}&current_weather=true"
 
30
  response = requests.get(url)
 
31
  weather_data = response.json()
32
  return json.dumps(weather_data)
33
  except Exception as e:
 
27
  """
28
  try:
29
  url = f"https://api.open-meteo.com/v1/forecast?latitude={latitude}&longitude={longitude}&current_weather=true"
30
+ print(url)
31
  response = requests.get(url)
32
+ print(response)
33
  weather_data = response.json()
34
  return json.dumps(weather_data)
35
  except Exception as e: