Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ def get_weather(city: str) -> str:
|
|
15 |
Args:
|
16 |
city: The city to fetch weather for.
|
17 |
"""
|
18 |
-
return f"
|
19 |
|
20 |
# Optional: Custom time tool if you want to keep it
|
21 |
@tool
|
@@ -27,7 +27,7 @@ def get_current_time_in_timezone(timezone: str) -> str:
|
|
27 |
try:
|
28 |
tz = pytz.timezone(timezone)
|
29 |
local_time = datetime.datetime.now(tz).strftime("%Y-%m-%d %H:%M:%S")
|
30 |
-
return f"
|
31 |
except Exception as e:
|
32 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
33 |
|
|
|
15 |
Args:
|
16 |
city: The city to fetch weather for.
|
17 |
"""
|
18 |
+
return f"{city} is sunny with 25°C (mock data)."
|
19 |
|
20 |
# Optional: Custom time tool if you want to keep it
|
21 |
@tool
|
|
|
27 |
try:
|
28 |
tz = pytz.timezone(timezone)
|
29 |
local_time = datetime.datetime.now(tz).strftime("%Y-%m-%d %H:%M:%S")
|
30 |
+
return f"{timezone} is: {local_time}"
|
31 |
except Exception as e:
|
32 |
return f"Error fetching time for timezone '{timezone}': {str(e)}"
|
33 |
|