Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,12 +10,8 @@ from Gradio_UI import GradioUI
|
|
| 10 |
|
| 11 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
| 12 |
@tool
|
| 13 |
-
def affirmations(
|
| 14 |
-
|
| 15 |
-
"""A tool that does nothing yet
|
| 16 |
-
Args:
|
| 17 |
-
arg1: the first argument
|
| 18 |
-
arg2: the second argument
|
| 19 |
"""
|
| 20 |
return random.choice(['you are awesome!', 'winners do not lose!', 'you can do it!'])
|
| 21 |
|
|
|
|
| 10 |
|
| 11 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
| 12 |
@tool
|
| 13 |
+
def affirmations()-> str: #it's import to specify the return type
|
| 14 |
+
"""tell someone something positive
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
"""
|
| 16 |
return random.choice(['you are awesome!', 'winners do not lose!', 'you can do it!'])
|
| 17 |
|