mar480 commited on
Commit
114e8dc
·
verified ·
1 Parent(s): f64c0e6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -9,7 +9,7 @@ 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 chChecker(companyNumber:str)-> bool: #it's import to specify the return type
13
  #Keep this format for the description / args / args description but feel free to modify the tool
14
  """A tool that checks whether the last accounts filing at Companies House for a specific company used XBRL
15
  Args:
@@ -81,7 +81,7 @@ with open("prompts.yaml", 'r') as stream:
81
 
82
  agent = CodeAgent(
83
  model=model,
84
- tools=[final_answer], ## add your tools here (don't remove final answer)
85
  max_steps=6,
86
  verbosity_level=1,
87
  grammar=None,
 
9
 
10
  # Below is an example of a tool that does nothing. Amaze us with your creativity !
11
  @tool
12
+ def companies_house_xbrl_checker(companyNumber:str)-> bool: #it's import to specify the return type
13
  #Keep this format for the description / args / args description but feel free to modify the tool
14
  """A tool that checks whether the last accounts filing at Companies House for a specific company used XBRL
15
  Args:
 
81
 
82
  agent = CodeAgent(
83
  model=model,
84
+ tools=[companies_house_xbrl_checker, final_answer], ## add your tools here (don't remove final answer)
85
  max_steps=6,
86
  verbosity_level=1,
87
  grammar=None,