pavtch commited on
Commit
96955dc
·
verified ·
1 Parent(s): 9d718ba

updated the get_sunrise_sunset tool

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -40,7 +40,7 @@ def get_sunrise_sunset(lat: float, lon: float) -> str:
40
  lat: Latitude of the location.
41
  lon: Longitude of the location.
42
  """
43
- url = f"https://api.open-meteo.com/v1/forecast?latitude={lat}&longitude={lon}&daily=sunrise,sunset&timezone=auto"
44
 
45
  try:
46
  response = requests.get(url)
@@ -52,6 +52,7 @@ def get_sunrise_sunset(lat: float, lon: float) -> str:
52
  return f"Error fetching sunrise/sunset data: {str(e)}"
53
 
54
 
 
55
  final_answer = FinalAnswerTool()
56
 
57
  # If the agent does not answer, the model is overloaded, please use another model or the following Hugging Face Endpoint that also contains qwen2.5 coder:
 
40
  lat: Latitude of the location.
41
  lon: Longitude of the location.
42
  """
43
+ url = f"https://api.open-meteo.com/v1/forecast?latitude={lat}&longitude={lon}&daily=sunrise,sunset&timezone=America/Santiago"
44
 
45
  try:
46
  response = requests.get(url)
 
52
  return f"Error fetching sunrise/sunset data: {str(e)}"
53
 
54
 
55
+
56
  final_answer = FinalAnswerTool()
57
 
58
  # If the agent does not answer, the model is overloaded, please use another model or the following Hugging Face Endpoint that also contains qwen2.5 coder: