ybattula commited on
Commit
8dc9593
·
verified ·
1 Parent(s): 7d8c148

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -5
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 combines a string and an integer into a formatted message.
16
 
17
  Args:
18
- arg1: The first argument, a string.
19
- arg2: The second argument, an integer.
20
 
21
  Returns:
22
- A formatted string combining both inputs.
23
  """
24
- return f"You entered the string '{arg1}' and the number {arg2}. Combined: {arg1} {arg2}"
 
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