Update app.py
Browse files
app.py
CHANGED
@@ -273,7 +273,7 @@ def web_search_and_extract_threading(
|
|
273 |
Searches using WEBS, extracts text from the top results using threading, and returns both.
|
274 |
"""
|
275 |
try:
|
276 |
-
with WEBS(
|
277 |
# Perform WEBS search
|
278 |
search_results = webs.text(keywords=q, region=region, safesearch=safesearch,
|
279 |
timelimit=timelimit, backend=backend, max_results=max_results)
|
|
|
273 |
Searches using WEBS, extracts text from the top results using threading, and returns both.
|
274 |
"""
|
275 |
try:
|
276 |
+
with WEBS() as webs:
|
277 |
# Perform WEBS search
|
278 |
search_results = webs.text(keywords=q, region=region, safesearch=safesearch,
|
279 |
timelimit=timelimit, backend=backend, max_results=max_results)
|