cyberosa commited on
Commit
e930cd9
·
1 Parent(s): 5d29ae3

updating smolagents

Browse files
Files changed (2) hide show
  1. app.py +0 -15
  2. requirements.txt +1 -1
app.py CHANGED
@@ -9,20 +9,6 @@ from tools.calories_checker import CaloriesCheckerTool
9
  from Gradio_UI import GradioUI
10
 
11
 
12
- # Below is an example of a tool that does nothing. Amaze us with your creativity !
13
- @tool
14
- def my_custom_tool(
15
- arg1: str, arg2: int
16
- ) -> str: # it's import to specify the return type
17
- # Keep this format for the description / args / args description but feel free to modify the tool
18
- """A tool that does nothing yet
19
- Args:
20
- arg1: the first argument
21
- arg2: the second argument
22
- """
23
- return "What magic will you build ?"
24
-
25
-
26
  @tool
27
  def get_current_time_in_timezone(timezone: str) -> str:
28
  """A tool that fetches the current local time in a specified timezone.
@@ -74,5 +60,4 @@ agent = CodeAgent(
74
  prompt_templates=prompt_templates,
75
  )
76
 
77
-
78
  GradioUI(agent).launch()
 
9
  from Gradio_UI import GradioUI
10
 
11
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  @tool
13
  def get_current_time_in_timezone(timezone: str) -> str:
14
  """A tool that fetches the current local time in a specified timezone.
 
60
  prompt_templates=prompt_templates,
61
  )
62
 
 
63
  GradioUI(agent).launch()
requirements.txt CHANGED
@@ -1,5 +1,5 @@
1
  markdownify
2
- smolagents
3
  requests
4
  duckduckgo_search
5
  pandas
 
1
  markdownify
2
+ smolagents==1.15.0
3
  requests
4
  duckduckgo_search
5
  pandas