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
|
|
@@ -343,7 +343,7 @@ def search_with_wikipedia(
|
|
| 343 |
|
| 344 |
def search_with_google(
|
| 345 |
query: str,
|
| 346 |
-
num_results: int =
|
| 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,
|