chore: format
This commit is contained in:
@@ -135,7 +135,6 @@ class PptxLoader:
|
||||
]
|
||||
|
||||
|
||||
|
||||
class TikaLoader:
|
||||
def __init__(self, url, file_path, mime_type=None, extract_images=None):
|
||||
self.url = url
|
||||
|
||||
@@ -37,9 +37,9 @@ def search_duckduckgo(
|
||||
|
||||
# Use the ddgs.text() method to perform the search
|
||||
try:
|
||||
kwargs = {"safesearch": "moderate", "max_results": count}
|
||||
if backend and backend != "auto":
|
||||
kwargs["backend"] = backend
|
||||
kwargs = {'safesearch': 'moderate', 'max_results': count}
|
||||
if backend and backend != 'auto':
|
||||
kwargs['backend'] = backend
|
||||
results = ddgs.text(query, **kwargs)
|
||||
search_results = results if results is not None else []
|
||||
except RatelimitException as e:
|
||||
|
||||
Reference in New Issue
Block a user