rsynak commited on
Commit
80c40af
·
verified ·
1 Parent(s): bac9ccb

update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -51,14 +51,14 @@ def get_current_time_in_timezone(timezone: str) -> str:
51
  return f"Error fetching time for timezone '{timezone}': {str(e)}"
52
 
53
  @tool
54
- def my_calculator(intg1: int, intg2: int) -> str:
55
  """A tool that calculates the product of two integgers
56
  Args:
57
  intg1: The first number in the calculation.
58
  intg2: The second number in the calculation.
59
  """
60
  product = intg1 * intg2
61
- print('{product}')
62
 
63
  duckduckgo_tool=DuckDuckGoSearchTool()
64
  final_answer=FinalAnswerTool()
 
51
  return f"Error fetching time for timezone '{timezone}': {str(e)}"
52
 
53
  @tool
54
+ def my_calculator(intg1: int, intg2: int) -> int:
55
  """A tool that calculates the product of two integgers
56
  Args:
57
  intg1: The first number in the calculation.
58
  intg2: The second number in the calculation.
59
  """
60
  product = intg1 * intg2
61
+ return f"The product of {intg1} and {intg2} is {product}."
62
 
63
  duckduckgo_tool=DuckDuckGoSearchTool()
64
  final_answer=FinalAnswerTool()