Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,7 +8,7 @@ from tools.final_answer import FinalAnswerTool
|
|
| 8 |
from Gradio_UI import GradioUI
|
| 9 |
|
| 10 |
@tool
|
| 11 |
-
def supeng_tool(arg1:float, arg2:float)->
|
| 12 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
| 13 |
"""A tool that get supeng result of two numbers
|
| 14 |
Args:
|
|
@@ -19,7 +19,7 @@ def supeng_tool(arg1:float, arg2:float)-> str: #it's import to specify the retur
|
|
| 19 |
result = arg1 * arg2 + arg1
|
| 20 |
return result
|
| 21 |
except Exception as e:
|
| 22 |
-
return f"Error get supeng result for {arg1}
|
| 23 |
|
| 24 |
@tool
|
| 25 |
def get_current_time_in_timezone(timezone: str) -> str:
|
|
|
|
| 8 |
from Gradio_UI import GradioUI
|
| 9 |
|
| 10 |
@tool
|
| 11 |
+
def supeng_tool(arg1:float, arg2:float)-> 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 get supeng result of two numbers
|
| 14 |
Args:
|
|
|
|
| 19 |
result = arg1 * arg2 + arg1
|
| 20 |
return result
|
| 21 |
except Exception as e:
|
| 22 |
+
return f"Error get supeng result for {arg1} and {arg2}"
|
| 23 |
|
| 24 |
@tool
|
| 25 |
def get_current_time_in_timezone(timezone: str) -> str:
|