Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -33,16 +33,6 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
33 |
except Exception as e:
|
34 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
35 |
|
36 |
-
@tool
|
37 |
-
def get_weather(city):
|
38 |
-
import requests
|
39 |
-
url = f"https://www.accuweather.com/{city}"
|
40 |
-
response = requests.get(url)
|
41 |
-
if response.status_code == 200:
|
42 |
-
data = response.json()
|
43 |
-
return data.get("weather", "No weather information available")
|
44 |
-
else:
|
45 |
-
return "Error: Unable to fetch weather data."
|
46 |
|
47 |
|
48 |
final_answer = FinalAnswerTool()
|
|
|
33 |
except Exception as e:
|
34 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
35 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
|
37 |
|
38 |
final_answer = FinalAnswerTool()
|