Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -31,6 +31,17 @@ def my_custom_tool(arg1: str, arg2: int) -> str:
|
|
31 |
repeated = (arg1.upper() + " ") * arg2
|
32 |
return repeated.strip()
|
33 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
|
35 |
|
36 |
|
|
|
31 |
repeated = (arg1.upper() + " ") * arg2
|
32 |
return repeated.strip()
|
33 |
|
34 |
+
@tool
|
35 |
+
def my_custom_tool(arg1: str, arg2: int) -> str:
|
36 |
+
"""
|
37 |
+
A tool that creates a personalized greeting repeated multiple times.
|
38 |
+
|
39 |
+
Args:
|
40 |
+
arg1: the name or phrase to greet
|
41 |
+
arg2: the number of times to repeat the greeting
|
42 |
+
"""
|
43 |
+
greeting = f"Hello, {arg1}!"
|
44 |
+
return " ".join([greeting] * arg2)
|
45 |
|
46 |
|
47 |
|