Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,6 +19,17 @@ from Gradio_UI import GradioUI
|
|
| 19 |
# """
|
| 20 |
# return "What magic will you build ?"
|
| 21 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
|
| 23 |
|
| 24 |
|
|
|
|
| 19 |
# """
|
| 20 |
# return "What magic will you build ?"
|
| 21 |
|
| 22 |
+
@tool
|
| 23 |
+
def my_custom_tool(arg1: str, arg2: int) -> str:
|
| 24 |
+
"""
|
| 25 |
+
A tool that repeats the input string in uppercase a given number of times.
|
| 26 |
+
|
| 27 |
+
Args:
|
| 28 |
+
arg1: the string to repeat
|
| 29 |
+
arg2: the number of repetitions
|
| 30 |
+
"""
|
| 31 |
+
repeated = (arg1.upper() + " ") * arg2
|
| 32 |
+
return repeated.strip()
|
| 33 |
|
| 34 |
|
| 35 |
|