AiWicked commited on
Commit
e08cfd2
·
verified ·
1 Parent(s): 6fcfc6d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -15
app.py CHANGED
@@ -51,21 +51,6 @@ def transform_belief_and_motivate(negative_belief: str) -> str:
51
  result = transform_belief_and_motivate("Я не смогу достичь своей цели")
52
  print(result)
53
 
54
-
55
- @tool
56
- def get_current_time_in_timezone(timezone: str) -> str:
57
- """A tool that fetches the current local time in a specified timezone.
58
- Args:
59
- timezone: A string representing a valid timezone (e.g., 'America/New_York').
60
- """
61
- try:
62
- # Create timezone object
63
- tz = pytz.timezone(timezone)
64
- # Get current time in that timezone
65
- local_time = datetime.datetime.now(tz).strftime("%Y-%m-%d %H:%M:%S")
66
- return f"The current local time in {timezone} is: {local_time}"
67
- except Exception as e:
68
- return f"Error fetching time for timezone '{timezone}': {str(e)}"
69
 
70
 
71
  final_answer = FinalAnswerTool()
 
51
  result = transform_belief_and_motivate("Я не смогу достичь своей цели")
52
  print(result)
53
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
54
 
55
 
56
  final_answer = FinalAnswerTool()