Spaces:
Sleeping
Sleeping
Update app.py
Browse files13 unmodified lines1415161718192035 unmodified lines5657585960616213 unmodified lines"""A tool that calculates the baker's ratio of an ingredient in a baking recipes.Args:weight_of_flour: the weight of the flour used in the recipeweight_of_of: the weight of the other ingredient - must be in the same units as the flour weight."""return f"The bakers ratio for this ingredient is {weight_of_other/weight_of_flour:.0%}"35 unmodified linesagent = CodeAgent(model=model,tools=[final_answer, DuckDuckGoSearchTool], ## add your tools here (don't remove final answer)max_steps=6,verbosity_level=1,grammar=None,13 unmodified lines1415161718192035 unmodified lines5657585960616213 unmodified lines"""A tool that calculates the baker's ratio of an ingredient in a baking recipes.Args:weight_of_flour: the weight of the flour used in the recipeweight_of_other: the weight of the other ingredient - must be in the same units as the flour weight."""return f"The bakers ratio for this ingredient is {weight_of_other/weight_of_flour:.0%}"35 unmodified linesagent = CodeAgent(model=model,tools=[final_answer, DuckDuckGoSearchTool(), bakers_ratio], ## add your tools here (don't remove final answer)max_steps=6,verbosity_level=1,grammar=None,
app.py+2-2