plan291037 commited on
Commit
f2ec53a
·
verified ·
1 Parent(s): 4a131fe

Update app/lens_text_core.py

Browse files
Files changed (1) hide show
  1. app/lens_text_core.py +3 -0
app/lens_text_core.py CHANGED
@@ -7,6 +7,7 @@ from urllib.parse import urlparse
7
  import httpx
8
  from PIL import Image
9
 
 
10
  from selenium import webdriver
11
  from selenium.webdriver.chrome.options import Options as ChromeOptions
12
  from selenium.webdriver.chrome.service import Service as ChromeService
@@ -14,6 +15,8 @@ from selenium.webdriver.common.by import By
14
  from selenium.webdriver.support.ui import WebDriverWait
15
  from selenium.webdriver.support import expected_conditions as EC
16
 
 
 
17
  CHROME_BINARY_PATH = os.getenv("CHROME_BINARY_PATH", "").strip()
18
 
19
  LOGGER = logging.getLogger("lens_text_core")
 
7
  import httpx
8
  from PIL import Image
9
 
10
+ import chromedriver_autoinstaller
11
  from selenium import webdriver
12
  from selenium.webdriver.chrome.options import Options as ChromeOptions
13
  from selenium.webdriver.chrome.service import Service as ChromeService
 
15
  from selenium.webdriver.support.ui import WebDriverWait
16
  from selenium.webdriver.support import expected_conditions as EC
17
 
18
+ chromedriver_autoinstaller.install()
19
+
20
  CHROME_BINARY_PATH = os.getenv("CHROME_BINARY_PATH", "").strip()
21
 
22
  LOGGER = logging.getLogger("lens_text_core")