Coredev commited on
Commit
42ff662
·
verified ·
1 Parent(s): f349de5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -14,7 +14,7 @@ def bakers_ratio(weight_of_flour: float, weight_of_other: float)-> float: #it's
14
  """A tool that calculates the baker's ratio of an ingredient in a baking recipes.
15
  Args:
16
  weight_of_flour: the weight of the flour used in the recipe
17
- weight_of_of: the weight of the other ingredient - must be in the same units as the flour weight.
18
  """
19
 
20
  return f"The bakers ratio for this ingredient is {weight_of_other/weight_of_flour:.0%}"
@@ -56,7 +56,7 @@ with open("prompts.yaml", 'r') as stream:
56
 
57
  agent = CodeAgent(
58
  model=model,
59
- tools=[final_answer, DuckDuckGoSearchTool], ## add your tools here (don't remove final answer)
60
  max_steps=6,
61
  verbosity_level=1,
62
  grammar=None,
 
14
  """A tool that calculates the baker's ratio of an ingredient in a baking recipes.
15
  Args:
16
  weight_of_flour: the weight of the flour used in the recipe
17
+ weight_of_other: the weight of the other ingredient - must be in the same units as the flour weight.
18
  """
19
 
20
  return f"The bakers ratio for this ingredient is {weight_of_other/weight_of_flour:.0%}"
 
56
 
57
  agent = CodeAgent(
58
  model=model,
59
+ tools=[final_answer, DuckDuckGoSearchTool(), bakers_ratio], ## add your tools here (don't remove final answer)
60
  max_steps=6,
61
  verbosity_level=1,
62
  grammar=None,