Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,7 +20,7 @@ def my_custom_tool(arg1:int, arg2:int)-> int: #it's import to specify the return
|
|
| 20 |
#Caluculation object
|
| 21 |
cal = sum(arg1,arg2)
|
| 22 |
return f"The sum of {arg1} and {arg2} is {cal}"
|
| 23 |
-
except
|
| 24 |
return f"Error fetching sum for {arg1} and {arg2}"
|
| 25 |
|
| 26 |
@tool
|
|
|
|
| 20 |
#Caluculation object
|
| 21 |
cal = sum(arg1,arg2)
|
| 22 |
return f"The sum of {arg1} and {arg2} is {cal}"
|
| 23 |
+
except Exception as e:
|
| 24 |
return f"Error fetching sum for {arg1} and {arg2}"
|
| 25 |
|
| 26 |
@tool
|