Spaces:
Sleeping
Sleeping
Update app.py
Browse files33 unmodified lines343536373839401 unmodified line42434445464717 unmodified lines6566676869707133 unmodified linesreturn f"Error fetching time for timezone '{timezone}': {str(e)}"@tooldef calculator(a: int, b: int) -> int:"""Multiply two integers.Args:a: an integer1 unmodified line"""return a * bfinal_answer = FinalAnswerTool()17 unmodified linesagent = CodeAgent(model=model,tools=[final_answer, image_generation_tool, calculator, get_current_time_in_timezone], ## add your tools here (don't remove final answer)max_steps=6,verbosity_level=1,grammar=None,33 unmodified lines343536373839401 unmodified line424344454647484950515253545517 unmodified lines7374757677787933 unmodified linesreturn f"Error fetching time for timezone '{timezone}': {str(e)}"@tooldef calculator1(a: int, b: int) -> int:"""Multiply two integers.Args:a: an integer1 unmodified line"""return a * b@tooldef calculator2(a: int, b: int) -> int:"""divide two integers.Args:a: an integerb: another integer"""return a / bfinal_answer = FinalAnswerTool()17 unmodified linesagent = CodeAgent(model=model,tools=[final_answer, image_generation_tool, calculator1, calculator2, get_current_time_in_timezone], ## add your tools here (don't remove final answer)max_steps=6,verbosity_level=1,grammar=None,
app.py+10-2