Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,18 +10,20 @@ from Gradio_UI import GradioUI
|
|
| 10 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
| 11 |
@tool
|
| 12 |
|
|
|
|
| 13 |
def my_custom_tool(arg1: str, arg2: int) -> str:
|
| 14 |
"""
|
| 15 |
-
A tool that
|
| 16 |
|
| 17 |
Args:
|
| 18 |
-
arg1:
|
| 19 |
-
arg2:
|
| 20 |
|
| 21 |
Returns:
|
| 22 |
-
A formatted string combining both inputs.
|
| 23 |
"""
|
| 24 |
-
|
|
|
|
| 25 |
|
| 26 |
|
| 27 |
@tool
|
|
|
|
| 10 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
| 11 |
@tool
|
| 12 |
|
| 13 |
+
|
| 14 |
def my_custom_tool(arg1: str, arg2: int) -> str:
|
| 15 |
"""
|
| 16 |
+
A whimsical tool that transforms your input into a magical phrase.
|
| 17 |
|
| 18 |
Args:
|
| 19 |
+
arg1: A word or phrase to enchant.
|
| 20 |
+
arg2: A number to amplify the magic.
|
| 21 |
|
| 22 |
Returns:
|
| 23 |
+
A creatively formatted string combining both inputs.
|
| 24 |
"""
|
| 25 |
+
sparkle = "✨" * (arg2 if arg2 < 10 else 10) # Limit sparkle to 10 for fun
|
| 26 |
+
return f"{sparkle} Behold! The mighty '{arg1.upper()}' appears {arg2} times! {sparkle}"
|
| 27 |
|
| 28 |
|
| 29 |
@tool
|