naufalnashif commited on
Commit
acaad0a
·
1 Parent(s): 7190751

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -14,7 +14,8 @@ def scrape_e_commerce(nama_barang, num_items):
14
  progress_text = "Scraping in progress. Please wait."
15
  my_bar = st.progress(len(products), text=progress_text)
16
 
17
- while len(products) < num_items :
 
18
  if len (products) > num_items :
19
  products = products[:num_items]
20
  break
 
14
  progress_text = "Scraping in progress. Please wait."
15
  my_bar = st.progress(len(products), text=progress_text)
16
 
17
+ #while len(products) < num_items :
18
+ for percent in range(num_items):
19
  if len (products) > num_items :
20
  products = products[:num_items]
21
  break