gokceKy commited on
Commit
e91fe43
·
verified ·
1 Parent(s): ffad5ad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -14,9 +14,9 @@ def calculator(arg1: int, arg2: str, arg3: int) -> int:
14
  A simple calculator that performs basic arithmetic operations.
15
 
16
  Args:
17
- arg1 (int): The first number.
18
- arg2 (str): The operator ('+', '-', '*','/').
19
- arg3 (int): The second number.
20
 
21
  Returns:
22
  int: The result of the calculation.
@@ -33,7 +33,7 @@ def calculator(arg1: int, arg2: str, arg3: int) -> int:
33
  elif arg2 == "/":
34
  return arg1 / arg3
35
  else:
36
- raise ValueError("Invalid operator! Only '+', '-' , '/' and '*' are allowed.")
37
 
38
 
39
  @tool
 
14
  A simple calculator that performs basic arithmetic operations.
15
 
16
  Args:
17
+ arg1 (int): The first operand, an integer number.
18
+ arg2 (str): The operator, which can be '+', '-', '*' or '/'.
19
+ arg3 (int): The second operand, an integer number.
20
 
21
  Returns:
22
  int: The result of the calculation.
 
33
  elif arg2 == "/":
34
  return arg1 / arg3
35
  else:
36
+ raise ValueError("Invalid operator! Only '+', '-' , '*' and '/' are allowed.")
37
 
38
 
39
  @tool