datacipen commited on
Commit
432000d
·
verified ·
1 Parent(s): c2c00ef

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
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 search.results(query, 5)
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",