plan291037 commited on
Commit
a37dea0
·
verified ·
1 Parent(s): c8083ab

Update app/lens_text_core.py

Browse files
Files changed (1) hide show
  1. app/lens_text_core.py +0 -4
app/lens_text_core.py CHANGED
@@ -32,8 +32,6 @@ _BROWSER_TTL = 900
32
  _IDLE_TIMEOUT = int(os.getenv("CHROME_IDLE_SECONDS", "60"))
33
 
34
  def _build_chrome(cookie_dict: Dict[str, str] | None = None):
35
- downloads_dir = "/tmp/downloads"
36
- os.makedirs(downloads_dir, exist_ok=True)
37
  drv = Driver(
38
  browser="chrome",
39
  uc=True,
@@ -41,8 +39,6 @@ def _build_chrome(cookie_dict: Dict[str, str] | None = None):
41
  incognito=True,
42
  )
43
 
44
- drv.set_download_dir(downloads_dir)
45
-
46
  drv.get("https://google.com/favicon.ico")
47
 
48
  if cookie_dict:
 
32
  _IDLE_TIMEOUT = int(os.getenv("CHROME_IDLE_SECONDS", "60"))
33
 
34
  def _build_chrome(cookie_dict: Dict[str, str] | None = None):
 
 
35
  drv = Driver(
36
  browser="chrome",
37
  uc=True,
 
39
  incognito=True,
40
  )
41
 
 
 
42
  drv.get("https://google.com/favicon.ico")
43
 
44
  if cookie_dict: