rchan26 commited on
Commit
288ba24
·
verified ·
1 Parent(s): d9cbbf7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -9,11 +9,11 @@ from Gradio_UI import GradioUI
9
 
10
  # Below is an example of a tool that does nothing. Amaze us with your creativity !
11
  @tool
12
- def calculator(x: int | float, y: int | float, operation: str)-> str:
13
  """A tool that performs an operation between x and y.
14
  Args:
15
- x: first integer or float in the calculation.
16
- y: second integer or float in the calculation.
17
  operation: one of ["+", "-", "*", "/"].
18
  """
19
  if operation == "+":
 
9
 
10
  # Below is an example of a tool that does nothing. Amaze us with your creativity !
11
  @tool
12
+ def calculator(x: float, y: float, operation: str)-> str:
13
  """A tool that performs an operation between x and y.
14
  Args:
15
+ x: first number in the calculation.
16
+ y: second number in the calculation.
17
  operation: one of ["+", "-", "*", "/"].
18
  """
19
  if operation == "+":