nlpblogs commited on
Commit
75798a6
·
verified ·
1 Parent(s): 64d9f61

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -94,12 +94,12 @@ if st.button("Sentiment Analysis", type="secondary"):
94
  driver.get(url)
95
  placeholder = st.empty()
96
  progress_bar = st.progress(0)
97
- for item in range(30):
98
  try:
99
  body = WebDriverWait(driver, 30).until(EC.visibility_of_element_located((By.TAG_NAME, "body")))
100
  body.send_keys(Keys.END)
101
  placeholder.text(f"Scrolled {item + 1} times")
102
- progress_bar.progress((item + 1) / 1000)
103
  time.sleep(0.50)
104
  except Exception as e:
105
  st.error(f"Exception during scrolling: {e}")
 
94
  driver.get(url)
95
  placeholder = st.empty()
96
  progress_bar = st.progress(0)
97
+ for item in range(1000):
98
  try:
99
  body = WebDriverWait(driver, 30).until(EC.visibility_of_element_located((By.TAG_NAME, "body")))
100
  body.send_keys(Keys.END)
101
  placeholder.text(f"Scrolled {item + 1} times")
102
+ progress_bar.progress((item + 1) / 150)
103
  time.sleep(0.50)
104
  except Exception as e:
105
  st.error(f"Exception during scrolling: {e}")