Spaces:
Running
Running
Update app/lens_images_core.py
Browse files- app/lens_images_core.py +3 -0
app/lens_images_core.py
CHANGED
|
@@ -3,10 +3,13 @@ import os, json, time, hashlib, httpx, base64, re, asyncio, threading, shutil, l
|
|
| 3 |
from typing import Dict, Any
|
| 4 |
from urllib.parse import urlparse
|
| 5 |
|
|
|
|
| 6 |
from selenium import webdriver
|
| 7 |
from selenium.webdriver.chrome.options import Options as ChromeOptions
|
| 8 |
from selenium.webdriver.chrome.service import Service as ChromeService
|
| 9 |
|
|
|
|
|
|
|
| 10 |
LOGGER = logging.getLogger("lens_images_core")
|
| 11 |
if not LOGGER.handlers:
|
| 12 |
logging.basicConfig(
|
|
|
|
| 3 |
from typing import Dict, Any
|
| 4 |
from urllib.parse import urlparse
|
| 5 |
|
| 6 |
+
import chromedriver_autoinstaller
|
| 7 |
from selenium import webdriver
|
| 8 |
from selenium.webdriver.chrome.options import Options as ChromeOptions
|
| 9 |
from selenium.webdriver.chrome.service import Service as ChromeService
|
| 10 |
|
| 11 |
+
chromedriver_autoinstaller.install()
|
| 12 |
+
|
| 13 |
LOGGER = logging.getLogger("lens_images_core")
|
| 14 |
if not LOGGER.handlers:
|
| 15 |
logging.basicConfig(
|