Atulit23 commited on
Commit
94cb0f3
·
verified ·
1 Parent(s): ed0acff

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. app.py +1 -3
  2. requirements.txt +2 -1
app.py CHANGED
@@ -8,14 +8,12 @@ from selenium.webdriver.chrome.service import Service
8
  import json
9
  import gradio as gr
10
  from gradio_client import Client
11
- import chromedriver_autoinstaller
12
 
13
  def scrape_data(amazon_url):
14
- # service = Service(executable_path='chromedriver')
15
  chrome_options = Options()
16
  chrome_options.add_argument('--headless')
17
 
18
- # chromedriver_autoinstaller.install(path='google-chrome-stable_current_amd64.deb')
19
  driver = webdriver.Chrome(options=chrome_options)
20
 
21
  driver.get(amazon_url)
 
8
  import json
9
  import gradio as gr
10
  from gradio_client import Client
11
+ import chromedriver_binary
12
 
13
  def scrape_data(amazon_url):
 
14
  chrome_options = Options()
15
  chrome_options.add_argument('--headless')
16
 
 
17
  driver = webdriver.Chrome(options=chrome_options)
18
 
19
  driver.get(amazon_url)
requirements.txt CHANGED
@@ -7,4 +7,5 @@ uvicorn
7
  gunicorn
8
  chromedriver-py
9
  webdriver-manager
10
- webdriver_manager
 
 
7
  gunicorn
8
  chromedriver-py
9
  webdriver-manager
10
+ webdriver_manager
11
+ chromedriver_binary