Abid Ali Awan commited on
Commit
be0c9e8
·
1 Parent(s): e90303f

Update search parameters in get_city_news function to use advanced search depth

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -71,8 +71,8 @@ def get_city_news(city_name):
71
  # Perform the search
72
  response = client.search(
73
  query=search_query,
74
- search_depth="basic",
75
- max_results=5, # Limit to top 5 results
76
  )
77
 
78
  # Extract relevant information from search results
 
71
  # Perform the search
72
  response = client.search(
73
  query=search_query,
74
+ search_depth="advanced",
75
+ max_results=5,
76
  )
77
 
78
  # Extract relevant information from search results