SilviuMatei commited on
Commit
d26d642
·
verified ·
1 Parent(s): c00f902

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -29
app.py CHANGED
@@ -14,35 +14,6 @@ import re
14
  from tools.final_answer import FinalAnswerTool
15
  from tools.getDeviceInfo import getDeviceInfo
16
 
17
- @tool
18
- def my_custom_tool(arg1:str, arg2:int)-> str: # it's important to specify the return type
19
- # Keep this format for the tool description / args description but feel free to modify the tool
20
- """A tool that does nothing yet
21
- Args:
22
- arg1: the first argument
23
- arg2: the second argument
24
- """
25
- return "What magic will you build ?"
26
-
27
- @tool
28
- def get_current_time_in_timezone(timezone: str) -> str:
29
- """A tool that fetches the current local time in a specified timezone.
30
- Args:
31
- timezone: A string representing a valid timezone (e.g., 'America/New_York').
32
- """
33
- try:
34
- # Create timezone object
35
- tz = pytz.timezone(timezone)
36
- # Get current time in that timezone
37
- local_time = datetime.datetime.now(tz).strftime("%Y-%m-%d %H:%M:%S")
38
- return f"The current local time in {timezone} is: {local_time}"
39
- except Exception as e:
40
- return f"Error fetching time for timezone '{timezone}': {str(e)}"
41
-
42
- #agent = CodeAgent(tools=[getDeviceInfo()], model=HfApiModel())
43
-
44
- #agent.run("https://www.google.com")
45
-
46
  # Initialize the final answer tool
47
  final_answer = FinalAnswerTool()
48
 
 
14
  from tools.final_answer import FinalAnswerTool
15
  from tools.getDeviceInfo import getDeviceInfo
16
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
  # Initialize the final answer tool
18
  final_answer = FinalAnswerTool()
19