fiastros commited on
Commit
c35ba56
·
verified ·
1 Parent(s): 2966081

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -1,6 +1,7 @@
1
- from smolagents import CodeAgent,DuckDuckGoSearchTool, HfApiModel,load_tool,tool
 
2
  import datetime
3
- import requests
4
  import pytz
5
  import yaml
6
  from tools.final_answer import FinalAnswerTool
@@ -8,8 +9,8 @@ from tools.final_answer import FinalAnswerTool
8
  from Gradio_UI import GradioUI
9
 
10
  @tool
11
- def my_custom_tool(city:str)-> str:
12
- """A tool that gets the gives the current weather of a city
13
  Args:
14
  city: a string representing the city
15
  """
 
1
+ from smolagents import CodeAgent, HfApiModel,load_tool,tool
2
+ # DuckDuckGoSearchTool
3
  import datetime
4
+ # import requests
5
  import pytz
6
  import yaml
7
  from tools.final_answer import FinalAnswerTool
 
9
  from Gradio_UI import GradioUI
10
 
11
  @tool
12
+ def get_weather(city:str)-> str:
13
+ """A tool that retrieves the current weather of a city
14
  Args:
15
  city: a string representing the city
16
  """