Skip to content

Commit

Permalink
Update internet.py
Browse files Browse the repository at this point in the history
  • Loading branch information
hlohaus authored Nov 15, 2024
1 parent d53db73 commit 0f81b61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion g4f/gui/server/internet.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ async def fetch_and_scrape(session: ClientSession, url: str, max_words: int = No
async def search(query: str, n_results: int = 5, max_words: int = 2500, add_text: bool = True) -> SearchResults:
if not has_requirements:
raise MissingRequirementsError('Install "duckduckgo-search" and "beautifulsoup4" package')
async with AsyncDDGS() as ddgs:
async with DDGS() as ddgs:
results = []
for result in await ddgs.atext(
query,
Expand Down

0 comments on commit 0f81b61

Please sign in to comment.