petkar commited on
Commit
e9d3846
·
verified ·
1 Parent(s): a66b499

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.run(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
 
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