citizendeeplearner commited on
Commit
29c2ae8
1 Parent(s): 00ce397

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -1
app.py CHANGED
@@ -13,9 +13,23 @@ from bs4 import BeautifulSoup
13
  from selenium.webdriver.chrome.options import Options
14
 
15
  from transformers import pipeline
 
 
 
 
16
 
 
17
 
18
- driver = webdriver.Chrome(service=Service(ChromeDriverManager().install()))
 
 
 
 
 
 
 
 
 
19
 
20
  st.title('Music Lyrics Summarizer')
21
  st.subheader('A Summary of the lyrics of your favourite English songs, prepared by AI')
 
13
  from selenium.webdriver.chrome.options import Options
14
 
15
  from transformers import pipeline
16
+ chromeOptions = webdriver.ChromeOptions()
17
+ chromeOptions.add_experimental_option("prefs", {"profile.managed_default_content_settings.images": 2})
18
+ chromeOptions.add_argument("--no-sandbox")
19
+ chromeOptions.add_argument("--disable-setuid-sandbox")
20
 
21
+ chromeOptions.add_argument("--remote-debugging-port=9222") # this
22
 
23
+ chromeOptions.add_argument("--disable-dev-shm-using")
24
+ chromeOptions.add_argument("--disable-extensions")
25
+ chromeOptions.add_argument("--disable-gpu")
26
+ chromeOptions.add_argument("start-maximized")
27
+ chromeOptions.add_argument("disable-infobars")
28
+ chromeOptions.add_argument(r"user-data-dir=.\cookies\\test")
29
+
30
+ driver = webdriver.Chrome(chrome_options=chromeOptions)
31
+
32
+ #driver = webdriver.Chrome(service=Service(ChromeDriverManager().install()))
33
 
34
  st.title('Music Lyrics Summarizer')
35
  st.subheader('A Summary of the lyrics of your favourite English songs, prepared by AI')