Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
from smolagents import CodeAgent, DuckDuckGoSearchTool, FinalAnswerTool, HfApiModel, Tool, tool, VisitWebpageTool
|
| 2 |
|
| 3 |
-
|
| 4 |
def suggest_menu(occasion: str) -> str:
|
| 5 |
"""
|
| 6 |
Suggests a menu based on the occasion.
|
|
@@ -16,7 +16,8 @@ def suggest_menu(occasion: str) -> str:
|
|
| 16 |
else:
|
| 17 |
return "Custom menu for the butler."
|
| 18 |
|
| 19 |
-
|
|
|
|
| 20 |
def catering_service_tool(query: str) -> str:
|
| 21 |
"""
|
| 22 |
This tool returns the highest-rated catering service in Gotham City.
|
|
|
|
| 1 |
from smolagents import CodeAgent, DuckDuckGoSearchTool, FinalAnswerTool, HfApiModel, Tool, tool, VisitWebpageTool
|
| 2 |
|
| 3 |
+
@tool
|
| 4 |
def suggest_menu(occasion: str) -> str:
|
| 5 |
"""
|
| 6 |
Suggests a menu based on the occasion.
|
|
|
|
| 16 |
else:
|
| 17 |
return "Custom menu for the butler."
|
| 18 |
|
| 19 |
+
|
| 20 |
+
@tool
|
| 21 |
def catering_service_tool(query: str) -> str:
|
| 22 |
"""
|
| 23 |
This tool returns the highest-rated catering service in Gotham City.
|