Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -19,17 +19,7 @@ from Gradio_UI import GradioUI
|
|
| 19 |
# """
|
| 20 |
# return "What magic will you build ?"
|
| 21 |
|
| 22 |
-
|
| 23 |
-
@tool
|
| 24 |
-
def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return type
|
| 25 |
-
#Keep this format for the description / args / args description but feel free to modify the tool
|
| 26 |
-
"""A tool that creates a personalized greeting repeated multiple times.
|
| 27 |
-
Args:
|
| 28 |
-
arg1: the name or phrase to greet
|
| 29 |
-
arg2: the number of times to repeat the greeting
|
| 30 |
-
"""
|
| 31 |
-
greeting = f"Hello, {arg1}!"
|
| 32 |
-
return " ".join([greeting] * arg2)
|
| 33 |
|
| 34 |
|
| 35 |
|
|
|
|
| 19 |
# """
|
| 20 |
# return "What magic will you build ?"
|
| 21 |
|
| 22 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
|
| 24 |
|
| 25 |
|