Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,6 +19,11 @@ def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return
|
|
| 19 |
return "What magic will you build ?"
|
| 20 |
@tool
|
| 21 |
def sum_one_to_n(arg:int)-> str:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
sum = n*(n+1)/2
|
| 23 |
return f'sum'
|
| 24 |
|
|
|
|
| 19 |
return "What magic will you build ?"
|
| 20 |
@tool
|
| 21 |
def sum_one_to_n(arg:int)-> str:
|
| 22 |
+
""" A tool that calculates the sum of numbers from to the given number
|
| 23 |
+
|
| 24 |
+
Args:
|
| 25 |
+
arg: the number
|
| 26 |
+
"""
|
| 27 |
sum = n*(n+1)/2
|
| 28 |
return f'sum'
|
| 29 |
|