Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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:
|
| 13 |
"""A tool that performs an operation between x and y.
|
| 14 |
Args:
|
| 15 |
-
x: first
|
| 16 |
-
y: second
|
| 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 == "+":
|