roxal commited on
Commit
1c9aecd
·
verified ·
1 Parent(s): 23bf395

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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=us&include=current&key=AUQWTCLEDRS6JF5HB75YCFGBE&contentType=json")
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