dlaima commited on
Commit
3a83eae
·
verified ·
1 Parent(s): 7a52a82

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -0
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