Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -33,7 +33,8 @@ def get_top_sightseeing(city: str, count: int) -> str:
|
|
| 33 |
if results:
|
| 34 |
return f"Top sightseeing locations in {city}:\n" + "\n".join(f"{i+1}. {r['title']}" for i, r in enumerate(results[:count]))
|
| 35 |
else:
|
| 36 |
-
|
|
|
|
| 37 |
@tool
|
| 38 |
def my_custom_tool(city:str, season:str)-> str: # it's important to specify the return type
|
| 39 |
"""
|
|
|
|
| 33 |
if results:
|
| 34 |
return f"Top sightseeing locations in {city}:\n" + "\n".join(f"{i+1}. {r['title']}" for i, r in enumerate(results[:count]))
|
| 35 |
else:
|
| 36 |
+
return f"No sightseeing data found for {city}."
|
| 37 |
+
|
| 38 |
@tool
|
| 39 |
def my_custom_tool(city:str, season:str)-> str: # it's important to specify the return type
|
| 40 |
"""
|