mishrabp commited on
Commit
98fa1b7
·
verified ·
1 Parent(s): 6d654d0

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. tools/google_tools.py +1 -1
tools/google_tools.py CHANGED
@@ -36,7 +36,7 @@ class GoogleTools:
36
 
37
  url = "https://google.serper.dev/search"
38
  headers = {"X-API-KEY": api_key, "Content-Type": "application/json"}
39
- payload = {"q": query, "num": num_results}
40
 
41
  response = requests.post(url, headers=headers, json=payload)
42
  response.raise_for_status()
 
36
 
37
  url = "https://google.serper.dev/search"
38
  headers = {"X-API-KEY": api_key, "Content-Type": "application/json"}
39
+ payload = {"q": query, "num": num_results, "tbs": "qdr:d"}
40
 
41
  response = requests.post(url, headers=headers, json=payload)
42
  response.raise_for_status()