AvindaShamal commited on
Commit
44c3bad
·
verified ·
1 Parent(s): ae7a494

Update app.py

Browse files

completed the custom_agent_tool

Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,4 +1,4 @@
1
- from smolagents import CodeAgent,DuckDuckGoSearchTool, HfApiModel,load_tool,tool
2
  import datetime
3
  import requests
4
  import pytz
@@ -16,7 +16,7 @@ def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return
16
  arg1: the first argument
17
  arg2: the second argument
18
  """
19
- return "What magic will you build ?"
20
 
21
  @tool
22
  def get_current_time_in_timezone(timezone: str) -> str:
 
1
+ from smolagents import CodeAgent,DuckDuckGoSearchTool, HfApiModel,load_tool,tool,image_generation_tool
2
  import datetime
3
  import requests
4
  import pytz
 
16
  arg1: the first argument
17
  arg2: the second argument
18
  """
19
+ return f"{arg1} {arg2}"
20
 
21
  @tool
22
  def get_current_time_in_timezone(timezone: str) -> str: