Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
@@ -7,6 +7,7 @@ import requests
|
|
7 |
# Function to perform Google search and return the first link
|
8 |
def google_search(query):
|
9 |
try:
|
|
|
10 |
# Perform the search and get an iterator of results
|
11 |
search_results = search(query, num_results=10) # Get up to 10 results
|
12 |
first_link = next(search_results, None) # Get the first result
|
|
|
7 |
# Function to perform Google search and return the first link
|
8 |
def google_search(query):
|
9 |
try:
|
10 |
+
query = query + "/t site:https//realtor.ca"
|
11 |
# Perform the search and get an iterator of results
|
12 |
search_results = search(query, num_results=10) # Get up to 10 results
|
13 |
first_link = next(search_results, None) # Get the first result
|