Makima57 commited on
Commit
dfd654f
·
verified ·
1 Parent(s): 29e5d40

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -6,12 +6,12 @@ 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=1, stop=1)
10
  first_link = next(search_results, None)
11
  return first_link
12
 
13
  # Streamlit app UI
14
- st.title("Google Search First Link Finder")
15
 
16
  # Input field for search query
17
  query = st.text_input("Enter search query", "")
 
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
 
13
  # Streamlit app UI
14
+ st.title("Search Link Finder")
15
 
16
  # Input field for search query
17
  query = st.text_input("Enter search query", "")