lamhieu commited on
Commit
26d4e59
·
1 Parent(s): acb3212

chore: update something

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -334,7 +334,7 @@ def search_with_wikipedia(
334
  try:
335
  wikipedia.set_lang(language)
336
  page = wikipedia.page(query)
337
- content = page.content[:8192]
338
  all_results.append(content)
339
  except Exception as e:
340
  pass
@@ -349,7 +349,7 @@ def search_with_google(
349
  ssl_verify: bool = None,
350
  ):
351
  all_results = []
352
- max_chars_per_page = 4096
353
  with requests.Session() as session:
354
  resp = session.get(
355
  url="https://www.google.com/search",
 
334
  try:
335
  wikipedia.set_lang(language)
336
  page = wikipedia.page(query)
337
+ content = page.content[:16384]
338
  all_results.append(content)
339
  except Exception as e:
340
  pass
 
349
  ssl_verify: bool = None,
350
  ):
351
  all_results = []
352
+ max_chars_per_page = 5120
353
  with requests.Session() as session:
354
  resp = session.get(
355
  url="https://www.google.com/search",