Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -28,13 +28,13 @@ def get_top_sightseeing(city: str, count: int) -> str:
|
|
| 28 |
"""
|
| 29 |
search_tool = DuckDuckGoSearchTool()
|
| 30 |
query = f"top {count} sightseeing locations in {city}"
|
| 31 |
-
results = search_tool.
|
| 32 |
|
| 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 |
|
| 39 |
|
| 40 |
@tool
|
|
|
|
| 28 |
"""
|
| 29 |
search_tool = DuckDuckGoSearchTool()
|
| 30 |
query = f"top {count} sightseeing locations in {city}"
|
| 31 |
+
results = search_tool.search(query)
|
| 32 |
|
| 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 |
|
| 39 |
|
| 40 |
@tool
|