Ragai1 commited on
Commit
7cd9bae
·
verified ·
1 Parent(s): eda8d66

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -19,8 +19,8 @@ def fetch_headlines(topic: str) -> str:
19
  Returns:
20
  A formatted string with up to 5 news headlines and their links.
21
  """
 
22
  try:
23
- search_tool = DuckDuckGoSearchTool()
24
  query = f"{topic} news"
25
  results = search_tool(query)
26
 
 
19
  Returns:
20
  A formatted string with up to 5 news headlines and their links.
21
  """
22
+ search_tool = DuckDuckGoSearchTool()
23
  try:
 
24
  query = f"{topic} news"
25
  results = search_tool(query)
26