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

Refine search query in get_city_news function to include specific topics and enhance relevance

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -65,7 +65,7 @@ def get_city_news(city_name):
65
  client = TavilyClient()
66
 
67
  # Search query for news about the city
68
- search_query = f"latest news in {city_name}"
69
 
70
  try:
71
  # Perform the search
 
65
  client = TavilyClient()
66
 
67
  # Search query for news about the city
68
+ search_query = f"Top 5 latest news articles about {city_name}, including major events, politics, economy, and local updates."
69
 
70
  try:
71
  # Perform the search