Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,13 +16,14 @@ try:
|
|
| 16 |
Link = "https://chat.openai.com/c/58ea6e4a-67e3-460e-99c8-8e701f863534"
|
| 17 |
chrome_driver_path = 'chromedriver.exe'
|
| 18 |
chrome_options = Options()
|
| 19 |
-
chrome_options.headless = True
|
| 20 |
chrome_options.add_experimental_option('excludeSwitches', ['enable-logging'])
|
| 21 |
chrome_options.add_argument('--log-level=3')
|
| 22 |
service = Service(chrome_driver_path)
|
| 23 |
driver = webdriver.Chrome(service=service, options=chrome_options)
|
| 24 |
driver.maximize_window()
|
| 25 |
driver.get(Link)
|
|
|
|
| 26 |
|
| 27 |
except Exception as e:
|
| 28 |
print("To resolve this error, you should set up the ChromeDriver properly.")
|
|
|
|
| 16 |
Link = "https://chat.openai.com/c/58ea6e4a-67e3-460e-99c8-8e701f863534"
|
| 17 |
chrome_driver_path = 'chromedriver.exe'
|
| 18 |
chrome_options = Options()
|
| 19 |
+
# chrome_options.headless = True
|
| 20 |
chrome_options.add_experimental_option('excludeSwitches', ['enable-logging'])
|
| 21 |
chrome_options.add_argument('--log-level=3')
|
| 22 |
service = Service(chrome_driver_path)
|
| 23 |
driver = webdriver.Chrome(service=service, options=chrome_options)
|
| 24 |
driver.maximize_window()
|
| 25 |
driver.get(Link)
|
| 26 |
+
st.write("Worked till here")
|
| 27 |
|
| 28 |
except Exception as e:
|
| 29 |
print("To resolve this error, you should set up the ChromeDriver properly.")
|