NLong commited on
Commit
5eace42
·
verified ·
1 Parent(s): 95ca342

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -388,7 +388,7 @@ def google_search(news_text):
388
  result = service.cse().list(
389
  q=search_query,
390
  cx=SEARCH_ENGINE_ID,
391
- num=5 # Reduced from 10 to 5 for faster processing
392
  ).execute()
393
 
394
  print(f"API Response keys: {list(result.keys())}")
@@ -407,7 +407,7 @@ def google_search(news_text):
407
  result = service.cse().list(
408
  q=simple_query,
409
  cx=SEARCH_ENGINE_ID,
410
- num=5
411
  ).execute()
412
 
413
  if 'items' in result and result['items']:
 
388
  result = service.cse().list(
389
  q=search_query,
390
  cx=SEARCH_ENGINE_ID,
391
+ num=10 # Restored to 10 for more comprehensive results
392
  ).execute()
393
 
394
  print(f"API Response keys: {list(result.keys())}")
 
407
  result = service.cse().list(
408
  q=simple_query,
409
  cx=SEARCH_ENGINE_ID,
410
+ num=10
411
  ).execute()
412
 
413
  if 'items' in result and result['items']: