theothecat commited on
Commit
708580f
·
verified ·
1 Parent(s): 6b7e39b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -16
app.py CHANGED
@@ -34,22 +34,6 @@ def get_current_time_in_timezone(timezone: str) -> str:
34
  return f"Error fetching time for timezone '{timezone}': {str(e)}"
35
 
36
 
37
- @tool
38
- def get_current_time_in_timezone_test_which_is_called(timezone: str) -> str:
39
- """A tool that fetches the current local time in a specified timezone.
40
- Args:
41
- timezone: A string representing a valid timezone (e.g., 'America/New_York').
42
- """
43
- try:
44
- # Create timezone object
45
- tz = pytz.timezone(timezone)
46
- # Get current time in that timezone
47
- local_time = datetime.datetime.now(tz).strftime("%Y-%m-%d %H:%M:%S")
48
- return f"The current local time in duplicate tool{timezone} is: {local_time}"
49
- except Exception as e:
50
- return f"Error fetching time for timezone '{timezone}': {str(e)}"
51
-
52
-
53
  final_answer = FinalAnswerTool()
54
 
55
  # If the agent does not answer, the model is overloaded, please use another model or the following Hugging Face Endpoint that also contains qwen2.5 coder:
 
34
  return f"Error fetching time for timezone '{timezone}': {str(e)}"
35
 
36
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37
  final_answer = FinalAnswerTool()
38
 
39
  # If the agent does not answer, the model is overloaded, please use another model or the following Hugging Face Endpoint that also contains qwen2.5 coder: