Spaces:
Sleeping
Sleeping
Thomas Hatting commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,10 +9,11 @@ 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 |
-
def suggest_menu(
|
| 13 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
| 14 |
"""
|
| 15 |
Suggests a menu based on the occasion.
|
|
|
|
| 16 |
Args:
|
| 17 |
occasion: The type of occasion for the party.
|
| 18 |
"""
|
|
|
|
| 9 |
|
| 10 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
| 11 |
@tool
|
| 12 |
+
def suggest_menu(occasion: str) -> 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 |
"""
|
| 15 |
Suggests a menu based on the occasion.
|
| 16 |
+
|
| 17 |
Args:
|
| 18 |
occasion: The type of occasion for the party.
|
| 19 |
"""
|