Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -20,14 +20,14 @@ def driversetup_huggingface():
|
|
20 |
options = ChromeOptions()
|
21 |
options.add_argument("--headless")
|
22 |
options.add_argument("--no-sandbox")
|
23 |
-
options.add_argument("--disable-gpu")
|
24 |
-
options.add_argument("--window-size=1920,1080")
|
25 |
options.add_argument("--disable-dev-shm-usage")
|
26 |
-
options.add_argument("lang=en")
|
27 |
-
options.add_argument("start-maximized")
|
28 |
-
options.add_argument("disable-infobars")
|
29 |
-
options.add_argument("--disable-extensions")
|
30 |
-
options.add_argument("--disable-blink-features=AutomationControlled")
|
31 |
options.add_argument("user-agent=Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36")
|
32 |
|
33 |
# Attempt to find chromedriver - Hugging Face Spaces might have it in specific locations
|
|
|
20 |
options = ChromeOptions()
|
21 |
options.add_argument("--headless")
|
22 |
options.add_argument("--no-sandbox")
|
23 |
+
# options.add_argument("--disable-gpu")
|
24 |
+
# options.add_argument("--window-size=1920,1080")
|
25 |
options.add_argument("--disable-dev-shm-usage")
|
26 |
+
# options.add_argument("lang=en")
|
27 |
+
# options.add_argument("start-maximized")
|
28 |
+
# options.add_argument("disable-infobars")
|
29 |
+
# options.add_argument("--disable-extensions")
|
30 |
+
# options.add_argument("--disable-blink-features=AutomationControlled")
|
31 |
options.add_argument("user-agent=Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36")
|
32 |
|
33 |
# Attempt to find chromedriver - Hugging Face Spaces might have it in specific locations
|