Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,13 +16,13 @@ search_model = HfApiModel(
|
|
| 16 |
)
|
| 17 |
|
| 18 |
@tool
|
| 19 |
-
def my_custom_tool(
|
| 20 |
"""
|
| 21 |
Fetches the top 5 sightseeing events in a city for a given season using Hugging Face II-Search.
|
| 22 |
|
| 23 |
Args:
|
| 24 |
-
|
| 25 |
-
|
| 26 |
|
| 27 |
Returns:
|
| 28 |
A formatted string listing the top 5 sightseeing events.
|
|
|
|
| 16 |
)
|
| 17 |
|
| 18 |
@tool
|
| 19 |
+
def my_custom_tool(city:str, season:str)-> str: # it's important to specify the return type
|
| 20 |
"""
|
| 21 |
Fetches the top 5 sightseeing events in a city for a given season using Hugging Face II-Search.
|
| 22 |
|
| 23 |
Args:
|
| 24 |
+
arg1: Name of the city (e.g., "Paris").
|
| 25 |
+
arg2: Season or time of year (e.g., "summer").
|
| 26 |
|
| 27 |
Returns:
|
| 28 |
A formatted string listing the top 5 sightseeing events.
|