Spaces:
Sleeping
Sleeping
Update app.py
Browse filesFix get_current_weather_tool
app.py
CHANGED
|
@@ -15,7 +15,7 @@ def get_current_weather_tool(location:str)-> str: #it's import to specify the re
|
|
| 15 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
| 16 |
"""A tool that fetches the current weather at the specified location.
|
| 17 |
Args:
|
| 18 |
-
|
| 19 |
"""
|
| 20 |
response = requests.request("GET", f"https://weather.visualcrossing.com/VisualCrossingWebServices/rest/services/timeline/{location}?unitGroup=us&include=current&key=AUQWTCLEDRS6JF5HB75YCFGBE&contentType=json")
|
| 21 |
if response.status_code!=200:
|
|
|
|
| 15 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
| 16 |
"""A tool that fetches the current weather at the specified location.
|
| 17 |
Args:
|
| 18 |
+
location: A string representing a city (e.g., Paris)
|
| 19 |
"""
|
| 20 |
response = requests.request("GET", f"https://weather.visualcrossing.com/VisualCrossingWebServices/rest/services/timeline/{location}?unitGroup=us&include=current&key=AUQWTCLEDRS6JF5HB75YCFGBE&contentType=json")
|
| 21 |
if response.status_code!=200:
|