wt002 commited on
Commit
56615fd
·
verified ·
1 Parent(s): 0150cb2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -32,7 +32,7 @@ class BasicAgent:
32
  """Returns 1-3 word answer when possible"""
33
  try:
34
  url = f"https://www.google.com/search?q={requests.utils.quote(query)}"
35
- html = requests.get(url, headers=self.headers, timeout=3).text
36
  soup = BeautifulSoup(html, 'html.parser')
37
 
38
  # Try to extract short answer
 
32
  """Returns 1-3 word answer when possible"""
33
  try:
34
  url = f"https://www.google.com/search?q={requests.utils.quote(query)}"
35
+ html = requests.get(url, headers=self.headers, timeout=20).text
36
  soup = BeautifulSoup(html, 'html.parser')
37
 
38
  # Try to extract short answer