chore: update something
Browse files
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[:
|
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 =
|
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",
|