Makima57 commited on
Commit
9827ed6
·
verified ·
1 Parent(s): dfd654f

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -6,7 +6,7 @@ from googlesearch import search
6
  # Function to perform Google search and return the first link
7
  def google_search(query):
8
  # Perform the search and get the first result
9
- search_results = search(query, num_results=1, stop=1)
10
  first_link = next(search_results, None)
11
  return first_link
12
 
 
6
  # Function to perform Google search and return the first link
7
  def google_search(query):
8
  # Perform the search and get the first result
9
+ search_results = search(query, num_results=1)
10
  first_link = next(search_results, None)
11
  return first_link
12