Spaces:
Sleeping
Sleeping
updating small change to app.py
Browse files
app.py
CHANGED
|
@@ -9,20 +9,13 @@ from Gradio_UI import GradioUI
|
|
| 9 |
|
| 10 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
| 11 |
@tool
|
| 12 |
-
"""ef my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return type"""
|
| 13 |
-
#Keep this format for the description / args / args description but feel free to modify the tool
|
| 14 |
-
"""A tool that does nothing yet
|
| 15 |
-
Args:
|
| 16 |
-
arg1: the first argument
|
| 17 |
-
arg2: the second argument
|
| 18 |
-
"""
|
| 19 |
-
"""return "What magic will you build ?""""
|
| 20 |
|
| 21 |
def word_counter(text: str) -> str:
|
| 22 |
"""Counts the number of words in a given text.
|
| 23 |
Args:
|
| 24 |
text: Input string
|
| 25 |
"""
|
|
|
|
| 26 |
count = len(text.split())
|
| 27 |
return f"The text contains {count} words."
|
| 28 |
|
|
|
|
| 9 |
|
| 10 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
| 11 |
@tool
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
|
| 13 |
def word_counter(text: str) -> str:
|
| 14 |
"""Counts the number of words in a given text.
|
| 15 |
Args:
|
| 16 |
text: Input string
|
| 17 |
"""
|
| 18 |
+
#Keep this format for the description / args / args description but feel free to modify the tool
|
| 19 |
count = len(text.split())
|
| 20 |
return f"The text contains {count} words."
|
| 21 |
|