Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files- app.py +1 -3
- 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
|
| 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
|