AdamyaG commited on
Commit
b589650
1 Parent(s): f29aed3

Update chatbot.py

Browse files
Files changed (1) hide show
  1. chatbot.py +2 -2
chatbot.py CHANGED
@@ -123,7 +123,7 @@ EXAMPLES = [
123
  BOT_AVATAR = "OpenAI_logo.png"
124
 
125
  # Perform a Google search and return the results
126
- @lru_cache(maxsize=64)
127
  def extract_text_from_webpage(html_content):
128
  """Extracts visible text from HTML content using BeautifulSoup."""
129
  soup = BeautifulSoup(html_content, "html.parser")
@@ -137,7 +137,7 @@ def search(query):
137
  term = query
138
  start = 0
139
  all_results = []
140
- max_chars_per_page = 4000
141
  with requests.Session() as session:
142
  resp = session.get(
143
  url="https://www.google.com/search",
 
123
  BOT_AVATAR = "OpenAI_logo.png"
124
 
125
  # Perform a Google search and return the results
126
+ @lru_cache(maxsize=128)
127
  def extract_text_from_webpage(html_content):
128
  """Extracts visible text from HTML content using BeautifulSoup."""
129
  soup = BeautifulSoup(html_content, "html.parser")
 
137
  term = query
138
  start = 0
139
  all_results = []
140
+ max_chars_per_page = 8000
141
  with requests.Session() as session:
142
  resp = session.get(
143
  url="https://www.google.com/search",