Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -17,7 +17,7 @@ def get_current_weather_tool(location:str)-> str: #it's import to specify the re
|
|
| 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=
|
| 21 |
if response.status_code!=200:
|
| 22 |
return('Unexpected Status code: ', response.status_code)
|
| 23 |
|
|
|
|
| 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=metric&include=current&key=AUQWTCLEDRS6JF5HB75YCFGBE&contentType=json")
|
| 21 |
if response.status_code!=200:
|
| 22 |
return('Unexpected Status code: ', response.status_code)
|
| 23 |
|