ppujari commited on
Commit
4b376ec
·
verified ·
1 Parent(s): 4249ced

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -14
app.py CHANGED
@@ -78,17 +78,3 @@ def my_custom_tool(arg1:str, arg2:str)-> str: #it's import to specify the return
78
  time.sleep(10)
79
  agent.quit()
80
  return "Text successfully entered!"
81
- @tool
82
- def get_current_time_in_timezone(timezone: str) -> str:
83
- """A tool that fetches the current local time in a specified timezone.
84
- Args:
85
- timezone: A string representing a valid timezone (e.g., 'America/New_York').
86
- """
87
- try:
88
- # Create timezone object
89
- tz = pytz.timezone(timezone)
90
- # Get current time in that timezone
91
- local_time = datetime.datetime.now(tz).strftime("%Y-%m-%d %H:%M:%S")
92
- return f"The current local time in {timezone} is: {local_time}"
93
- except Exception as e:
94
- return f"Error fetching time for timezone '{timezone}': {str(e)}"
 
78
  time.sleep(10)
79
  agent.quit()
80
  return "Text successfully entered!"