Update main.py
Browse files
main.py
CHANGED
@@ -219,7 +219,7 @@ async def on_message(message: cl.Message):
|
|
219 |
os.environ["GOOGLE_API_KEY"] = os.getenv('GOOGLE_API_KEY')
|
220 |
searchAPI = GoogleSearchAPIWrapper()
|
221 |
def top5_results(query):
|
222 |
-
return
|
223 |
|
224 |
tool = Tool(
|
225 |
name="Google Search Snippets",
|
|
|
219 |
os.environ["GOOGLE_API_KEY"] = os.getenv('GOOGLE_API_KEY')
|
220 |
searchAPI = GoogleSearchAPIWrapper()
|
221 |
def top5_results(query):
|
222 |
+
return searchAPI.results(query, 5)
|
223 |
|
224 |
tool = Tool(
|
225 |
name="Google Search Snippets",
|