Spaces:
Sleeping
Sleeping
updated get_current_time_in_timezone
Browse files
app.py
CHANGED
|
@@ -34,7 +34,7 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
| 34 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
| 35 |
|
| 36 |
@tool
|
| 37 |
-
def
|
| 38 |
"""Fetches the sunrise and sunset times for a given latitude and longitude.
|
| 39 |
Args:
|
| 40 |
lat: Latitude of the location.
|
|
@@ -52,7 +52,6 @@ def get_sunrise_sunset(lat: float, lon: float) -> str:
|
|
| 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:
|
|
|
|
| 34 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
| 35 |
|
| 36 |
@tool
|
| 37 |
+
def get_current_time_in_timezone(lat: float, lon: float) -> str:
|
| 38 |
"""Fetches the sunrise and sunset times for a given latitude and longitude.
|
| 39 |
Args:
|
| 40 |
lat: Latitude of the location.
|
|
|
|
| 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:
|