clwuyang commited on
Commit
d9ea5a8
·
verified ·
1 Parent(s): 9930aeb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -10,7 +10,7 @@ from Gradio_UI import GradioUI
10
 
11
  # Below is an example of a tool that does nothing. Amaze us with your creativity !
12
  @tool
13
- def get_city_weather(city:str)-> str: #it's import to specify the return type
14
 
15
  """A tool that fetches the weather of an specific city
16
  Args:
@@ -37,8 +37,6 @@ def get_city_weather(city:str)-> str: #it's import to specify the return type
37
  except requests.exceptions.RequestException as e:
38
  return f"Error: Unable to fetch weather data. {e}"
39
 
40
- weather_tool = get_city_weather
41
- agent = CodeAgent(tools=[weather_tool])
42
 
43
  @tool
44
  def get_current_time_in_timezone(timezone: str) -> str:
 
10
 
11
  # Below is an example of a tool that does nothing. Amaze us with your creativity !
12
  @tool
13
+ def get_weather(city:str)-> str: #it's import to specify the return type
14
 
15
  """A tool that fetches the weather of an specific city
16
  Args:
 
37
  except requests.exceptions.RequestException as e:
38
  return f"Error: Unable to fetch weather data. {e}"
39
 
 
 
40
 
41
  @tool
42
  def get_current_time_in_timezone(timezone: str) -> str: