wzkariampuzha commited on
Commit
256dcea
1 Parent(s): d99ffe1

Update extract_abs.py

Browse files
Files changed (1) hide show
  1. extract_abs.py +1 -2
extract_abs.py CHANGED
@@ -305,7 +305,6 @@ def streamlit_extraction(search_term:Union[int,str], maxResults:int, filtering:s
305
  if len(pmid_abs)==0:
306
  st.error('No results were gathered. Enter a new search term.')
307
  else:
308
- st.write("Gathered " +str(len(pmid_abs))+" PubMed IDs. Classifying and extracting epidemiology information...")
309
  gathered, relevant = sankey_initial
310
  epidemiologic = 0
311
  i = 0
@@ -324,7 +323,7 @@ def streamlit_extraction(search_term:Union[int,str], maxResults:int, filtering:s
324
  results = results.append(extraction, ignore_index=True)
325
  epidemiologic+=1
326
  i+=1
327
- my_bar.progress(round(i*percent_at_step/100,1))
328
 
329
  sankey_data = (gathered, relevant,epidemiologic)
330
  st.write(len(results),'abstracts classified as epidemiological.')
 
305
  if len(pmid_abs)==0:
306
  st.error('No results were gathered. Enter a new search term.')
307
  else:
 
308
  gathered, relevant = sankey_initial
309
  epidemiologic = 0
310
  i = 0
 
323
  results = results.append(extraction, ignore_index=True)
324
  epidemiologic+=1
325
  i+=1
326
+ my_bar.progress(min(round(i*percent_at_step/100,1),1.0))
327
 
328
  sankey_data = (gathered, relevant,epidemiologic)
329
  st.write(len(results),'abstracts classified as epidemiological.')