Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Commit

Permalink
missing import added (#463)
Browse files Browse the repository at this point in the history
  • Loading branch information
bleakview authored Aug 13, 2023
1 parent fd892a6 commit a4289c0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions llama_hub/tools/wikipedia/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ def search_data(self, query: str, lang: str = "en") -> List[Document]:
Args:
query (str): the string to search for
"""
import wikipedia
pages = wikipedia.search(query)
if len(pages) == 0:
return "Unable to find any details on this search"
Expand Down

0 comments on commit a4289c0

Please sign in to comment.