Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
-
from smolagents import CodeAgent,
|
|
|
|
| 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
|
| 12 |
-
"""A tool that
|
| 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 |
"""
|