Spaces:
Sleeping
Sleeping
arabellastrange
commited on
Commit
·
45c887d
1
Parent(s):
8973a4e
exec path for chrome
Browse files- requirements.txt +1 -3
- web_search.py +2 -3
requirements.txt
CHANGED
@@ -11,6 +11,4 @@ llama-index-readers-file
|
|
11 |
selenium==4.22.0
|
12 |
unstructured
|
13 |
requests
|
14 |
-
chromium
|
15 |
-
chromedriver-autoinstaller==0.6.4
|
16 |
-
webdriver-manager
|
|
|
11 |
selenium==4.22.0
|
12 |
unstructured
|
13 |
requests
|
14 |
+
chromium
|
|
|
|
web_search.py
CHANGED
@@ -13,7 +13,6 @@ from selenium import webdriver
|
|
13 |
from selenium.webdriver.chrome.options import Options
|
14 |
from selenium.webdriver.chrome.service import Service as ChromeService
|
15 |
from unstructured.partition.html import partition_html
|
16 |
-
from webdriver_manager.chrome import ChromeDriverManager
|
17 |
|
18 |
from llmsearch import site_stats
|
19 |
# this import style works in pycharm
|
@@ -79,8 +78,8 @@ def process_url(url, timeout):
|
|
79 |
options.add_argument("--disable-gpu")
|
80 |
options.add_argument("--disable-dev-shm-usage")
|
81 |
result = ""
|
82 |
-
|
83 |
-
driver = webdriver.Chrome(options=options)
|
84 |
logger.info(f"*****setting page load timeout {timeout}")
|
85 |
driver.set_page_load_timeout(timeout)
|
86 |
|
|
|
13 |
from selenium.webdriver.chrome.options import Options
|
14 |
from selenium.webdriver.chrome.service import Service as ChromeService
|
15 |
from unstructured.partition.html import partition_html
|
|
|
16 |
|
17 |
from llmsearch import site_stats
|
18 |
# this import style works in pycharm
|
|
|
78 |
options.add_argument("--disable-gpu")
|
79 |
options.add_argument("--disable-dev-shm-usage")
|
80 |
result = ""
|
81 |
+
|
82 |
+
driver = webdriver.Chrome(service=ChromeService(executable_path='chromedriver-linux64'), options=options)
|
83 |
logger.info(f"*****setting page load timeout {timeout}")
|
84 |
driver.set_page_load_timeout(timeout)
|
85 |
|