KingNish commited on
Commit
8c443aa
1 Parent(s): cf8343d

Update chatbot.py

Browse files
Files changed (1) hide show
  1. chatbot.py +1 -1
chatbot.py CHANGED
@@ -260,7 +260,7 @@ def search(term, num_results=3, lang="en", advanced=True, timeout=5, safe="activ
260
  start = 0
261
  all_results = []
262
  # Limit the number of characters from each webpage to stay under the token limit
263
- max_chars_per_page = 10000 # Adjust this value based on your token limit and average webpage length
264
 
265
  with requests.Session() as session:
266
  while start < num_results:
 
260
  start = 0
261
  all_results = []
262
  # Limit the number of characters from each webpage to stay under the token limit
263
+ max_chars_per_page = 8000 # Adjust this value based on your token limit and average webpage length
264
 
265
  with requests.Session() as session:
266
  while start < num_results: