Spaces:
Sleeping
Sleeping
Update app.py
Browse files33 unmodified lines34353637373839401 unmodified line424344454647484950515253545517 unmodified lines737475687677787933 unmodified lines return f"Error fetching time for timezone '{timezone}': {str(e)}"
@tooldef calculator(a: int, b: int) -> int:def 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 integer b: another integer """ return a / b
final_answer = FinalAnswerTool()
17 unmodified lines agent = CodeAgent( model=model, tools=[final_answer, image_generation_tool, calculator, get_current_time_in_timezone], ## add your tools here (don't remove final answer) 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