lamhieu commited on
Commit
e4e484a
·
1 Parent(s): 3b99fcf

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[:5120]
338
  all_results.append(content)
339
  except Exception as e:
340
  pass
@@ -343,7 +343,7 @@ def search_with_wikipedia(
343
 
344
  def search_with_google(
345
  query: str,
346
- num_results: int = 3,
347
  timeout: int = 5,
348
  language: str = "en",
349
  ssl_verify: bool = None,
 
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
 
343
 
344
  def search_with_google(
345
  query: str,
346
+ num_results: int = 4,
347
  timeout: int = 5,
348
  language: str = "en",
349
  ssl_verify: bool = None,