kakarlas commited on
Commit
0c7e032
·
verified ·
1 Parent(s): 84acade

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -10,12 +10,11 @@ from Gradio_UI import GradioUI
10
  # Below is an example of a tool that does nothing. Amaze us with your creativity !
11
  @tool
12
  def get_weather_tool(city: str )-> str: #it's import to specify the return type
13
- #Keep this format for the description / args / args description but feel free to modify the tool
14
- """A tool that does nothing yet
15
  Args:
16
- city: A string representing a city in US
17
  """
18
- return "the weather is cloudy"
19
 
20
  @tool
21
  def get_current_time_in_timezone(timezone: str) -> str:
@@ -54,7 +53,7 @@ with open("prompts.yaml", 'r') as stream:
54
 
55
  agent = CodeAgent(
56
  model=model,
57
- tools=[final_answer, DuckDuckGoSearchTool, get_weather_tool], ## add your tools here (don't remove final answer)
58
  max_steps=6,
59
  verbosity_level=1,
60
  grammar=None,
 
10
  # Below is an example of a tool that does nothing. Amaze us with your creativity !
11
  @tool
12
  def get_weather_tool(city: str )-> str: #it's import to specify the return type
13
+ """ A tool to get weather information for a specified city
 
14
  Args:
15
+ city: A string representing a city in US (e.g., 'New York')
16
  """
17
+ return f"the weather in this {city} is cloudy"
18
 
19
  @tool
20
  def get_current_time_in_timezone(timezone: str) -> str:
 
53
 
54
  agent = CodeAgent(
55
  model=model,
56
+ tools=[final_answer, get_weather_tool], ## add your tools here (don't remove final answer)
57
  max_steps=6,
58
  verbosity_level=1,
59
  grammar=None,