JIaameng commited on
Commit
8a56a8d
·
verified ·
1 Parent(s): e2ff466

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -9,8 +9,8 @@ from Gradio_UI import GradioUI
9
 
10
  # Below is an example of a tool that does nothing. Amaze us with your creativity !
11
  @tool
12
- def get_plus_result(arg1:int, arg2:int)-> int:
13
- """A tool that can calculate plus from two number.
14
  Args:
15
  arg1: the first number
16
  arg2: the second number
@@ -55,7 +55,7 @@ with open("prompts.yaml", 'r') as stream:
55
 
56
  agent = CodeAgent(
57
  model=model,
58
- tools=[final_answer,get_current_time_in_timezone], ## add your tools here (don't remove final answer)
59
  max_steps=6,
60
  verbosity_level=1,
61
  grammar=None,
 
9
 
10
  # Below is an example of a tool that does nothing. Amaze us with your creativity !
11
  @tool
12
+ def get_sum_result(arg1:int, arg2:int)-> int:
13
+ """A tool that can sum two number.
14
  Args:
15
  arg1: the first number
16
  arg2: the second number
 
55
 
56
  agent = CodeAgent(
57
  model=model,
58
+ tools=[final_answer,get_current_time_in_timezone,get_sum_result], ## add your tools here (don't remove final answer)
59
  max_steps=6,
60
  verbosity_level=1,
61
  grammar=None,