roxal commited on
Commit
1255e7b
·
verified ·
1 Parent(s): 40a937b

Update app.py

Browse files

Fix get_current_weather_tool

Files changed (1) hide show
  1. app.py +1 -1
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
- arg1: 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:
 
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: