Spaces:
Sleeping
Sleeping
tool description change
Browse filesIn the tool description section it's very important to tell him exactly what is it able to do
app.py
CHANGED
|
@@ -11,7 +11,7 @@ from Gradio_UI import GradioUI
|
|
| 11 |
def basic_calculator(num1:float, num2:float, act:str)-> float: #it's import to specify the return type
|
| 12 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
| 13 |
"""A tool that takes two numbers and the action to perform on them.
|
| 14 |
-
The tool is capable of four actions: add, substract, multiply, divide
|
| 15 |
Args:
|
| 16 |
num1: the first number
|
| 17 |
num2: the second number
|
|
@@ -90,4 +90,4 @@ agent = CodeAgent(
|
|
| 90 |
)
|
| 91 |
|
| 92 |
|
| 93 |
-
GradioUI(agent).launch()
|
|
|
|
| 11 |
def basic_calculator(num1:float, num2:float, act:str)-> float: #it's import to specify the return type
|
| 12 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
| 13 |
"""A tool that takes two numbers and the action to perform on them.
|
| 14 |
+
The tool is capable of four actions: add, substract, multiply, divide, power
|
| 15 |
Args:
|
| 16 |
num1: the first number
|
| 17 |
num2: the second number
|
|
|
|
| 90 |
)
|
| 91 |
|
| 92 |
|
| 93 |
+
GradioUI(agent).launch(share=True)
|