Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -77,7 +77,7 @@ def get_top_restaurants(city: str) -> str:
|
|
| 77 |
"""
|
| 78 |
try:
|
| 79 |
search_tool = DuckDuckGoSearchTool()
|
| 80 |
-
results = search_tool.
|
| 81 |
if results:
|
| 82 |
top_restaurants = '\n'.join([f"{i+1}. {r['title']} - {r['link']}" for i, r in enumerate(results[:5])])
|
| 83 |
return f"Top 5 Restaurants in {city}:\n{top_restaurants}"
|
|
|
|
| 77 |
"""
|
| 78 |
try:
|
| 79 |
search_tool = DuckDuckGoSearchTool()
|
| 80 |
+
results = search_tool.forward(f"Top 5 restaurants in {city}")
|
| 81 |
if results:
|
| 82 |
top_restaurants = '\n'.join([f"{i+1}. {r['title']} - {r['link']}" for i, r in enumerate(results[:5])])
|
| 83 |
return f"Top 5 Restaurants in {city}:\n{top_restaurants}"
|