Spaces:
Sleeping
Sleeping
Upload app.py
Browse files
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=
|
| 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=
|
| 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']:
|