Mintemir commited on
Commit
0397007
·
verified ·
1 Parent(s): a6f88f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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"The weather in {city} is sunny with 25°C (mock data)."
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"The current local time in {timezone} is: {local_time}"
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