Upload app.py with huggingface_hub
Browse files
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
|
| 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 |
|