milinbhade1214 commited on
Commit
f64a92e
·
verified ·
1 Parent(s): ea36f73

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -25,7 +25,7 @@ def search_recent_news(query: str) -> str:
25
  query: The search query for the news topic.
26
  """
27
  search_tool = DuckDuckGoSearchTool()
28
- results = search_tool.run(f"{query} latest news")
29
 
30
  if not results:
31
  return "No recent news found for this query."
 
25
  query: The search query for the news topic.
26
  """
27
  search_tool = DuckDuckGoSearchTool()
28
+ results = search_tool(f"{query} latest news")
29
 
30
  if not results:
31
  return "No recent news found for this query."