Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,7 +18,7 @@ def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return
|
|
| 18 |
"""
|
| 19 |
if arg2 == 'first':
|
| 20 |
return arg1[0]
|
| 21 |
-
|
| 22 |
return arg1[-1]
|
| 23 |
else:
|
| 24 |
return 'arg2 format is not correct'
|
|
|
|
| 18 |
"""
|
| 19 |
if arg2 == 'first':
|
| 20 |
return arg1[0]
|
| 21 |
+
elif arg2 == 'last':
|
| 22 |
return arg1[-1]
|
| 23 |
else:
|
| 24 |
return 'arg2 format is not correct'
|