Omnibus commited on
Commit
d085e01
·
1 Parent(s): bae1830

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -4,7 +4,7 @@ from bs4 import BeautifulSoup
4
  import re
5
 
6
  def search_fn(query,count):
7
- page = requests.get(f"https://www.google.com/search?q={query}&num={count}")
8
  soup = BeautifulSoup(page.content)
9
  #links = soup.findAll("a")
10
 
@@ -104,7 +104,7 @@ with gr.Blocks() as app:
104
  with gr.Row():
105
  search_box=gr.Textbox(label = "Search",scale=2)
106
  num_return=gr.Number(value=20, scale=1)
107
- search_btn=gr.Button(scale=2)
108
  with gr.Row():
109
  input = gr.Textbox(label = "URL")
110
  btn = gr.Button()
 
4
  import re
5
 
6
  def search_fn(query,count):
7
+ page = requests.get(f"https://www.google.com/search?q={query}&num={int(count)}")
8
  soup = BeautifulSoup(page.content)
9
  #links = soup.findAll("a")
10
 
 
104
  with gr.Row():
105
  search_box=gr.Textbox(label = "Search",scale=2)
106
  num_return=gr.Number(value=20, scale=1)
107
+ search_btn=gr.Button(scale=1)
108
  with gr.Row():
109
  input = gr.Textbox(label = "URL")
110
  btn = gr.Button()