Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
@@ -58,9 +59,6 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
58 |
|
59 |
|
60 |
@tool
|
61 |
-
import requests
|
62 |
-
import re
|
63 |
-
|
64 |
def fetch_weather(city):
|
65 |
try:
|
66 |
url = f"https://www.weather.com/weather/today/l/{city}"
|
|
|
1 |
from smolagents import CodeAgent,DuckDuckGoSearchTool, HfApiModel,load_tool,tool
|
2 |
import datetime
|
3 |
import requests
|
4 |
+
import re
|
5 |
import pytz
|
6 |
import yaml
|
7 |
from tools.final_answer import FinalAnswerTool
|
|
|
59 |
|
60 |
|
61 |
@tool
|
|
|
|
|
|
|
62 |
def fetch_weather(city):
|
63 |
try:
|
64 |
url = f"https://www.weather.com/weather/today/l/{city}"
|