lamhieu commited on
Commit
fb532c8
·
1 Parent(s): a75d49d

chore: update something

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -325,7 +325,7 @@ def search_with_wikipedia(
325
  try:
326
  wikipedia.set_lang(language)
327
  page = wikipedia.page(query)
328
- content = page.content[:5120]
329
  all_results.append(content)
330
  except Exception as e:
331
  pass
@@ -334,7 +334,7 @@ def search_with_wikipedia(
334
 
335
  def search_with_google(
336
  query: str,
337
- num_results: int = 3,
338
  timeout: int = 5,
339
  language: str = "en",
340
  ssl_verify: bool = None,
 
325
  try:
326
  wikipedia.set_lang(language)
327
  page = wikipedia.page(query)
328
+ content = page.content[:8192]
329
  all_results.append(content)
330
  except Exception as e:
331
  pass
 
334
 
335
  def search_with_google(
336
  query: str,
337
+ num_results: int = 4,
338
  timeout: int = 5,
339
  language: str = "en",
340
  ssl_verify: bool = None,