nlpblogs commited on
Commit
7a8dd31
·
verified ·
1 Parent(s): 75798a6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -94,13 +94,13 @@ 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(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}")
106
  break
 
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) / 150)
103
+ time.sleep(0.5)
104
  except Exception as e:
105
  st.error(f"Exception during scrolling: {e}")
106
  break