Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -80,14 +80,14 @@ from webdriver_manager.firefox import GeckoDriverManager
|
|
80 |
|
81 |
@st.cache_resource
|
82 |
def get_driver():
|
83 |
-
options = webdriver.
|
84 |
options.add_argument("--headless") # Run in headless mode
|
85 |
options.add_argument("--no-sandbox")
|
86 |
options.add_argument("--disable-dev-shm-usage")
|
87 |
options.binary_location = "/usr/bin/firefox"
|
88 |
|
89 |
try:
|
90 |
-
driver = webdriver.
|
91 |
return driver
|
92 |
except Exception as e:
|
93 |
st.error(f"Error initializing WebDriver: {e}")
|
|
|
80 |
|
81 |
@st.cache_resource
|
82 |
def get_driver():
|
83 |
+
options = webdriver.ChromeOptions()
|
84 |
options.add_argument("--headless") # Run in headless mode
|
85 |
options.add_argument("--no-sandbox")
|
86 |
options.add_argument("--disable-dev-shm-usage")
|
87 |
options.binary_location = "/usr/bin/firefox"
|
88 |
|
89 |
try:
|
90 |
+
driver = webdriver.Chrome(options=options)
|
91 |
return driver
|
92 |
except Exception as e:
|
93 |
st.error(f"Error initializing WebDriver: {e}")
|