wzkariampuzha commited on
Commit
e8ec1ab
1 Parent(s): a8b6710

Update classify_abs.py

Browse files
Files changed (1) hide show
  1. classify_abs.py +3 -2
classify_abs.py CHANGED
@@ -290,7 +290,7 @@ def streamlit_getAbs(searchterm_list:Union[List[str],List[int],str], maxResults:
290
  else:
291
  searchterm_list = list(searchterm_list)
292
  #maxResults is multiplied by a little bit because sometimes the results returned is more than maxResults
293
- percent_by_step = 1/(maxResults*1.25)
294
  PMIDs_bar = st.progress(0)
295
  for dz in searchterm_list:
296
  term = ''
@@ -353,7 +353,8 @@ def streamlit_getAbs(searchterm_list:Union[List[str],List[int],str], maxResults:
353
  pmid_abs[pmid] = abstract
354
  abstracts_bar.progress(round(len(pmid_abs)*percent_by_step,1))
355
  abstracts_bar.empty()
356
- st.success('Found',len(pmids),'PMIDs. Gathered',len(pmid_abs),'Relevant Abstracts.')
 
357
 
358
  return pmid_abs
359
 
 
290
  else:
291
  searchterm_list = list(searchterm_list)
292
  #maxResults is multiplied by a little bit because sometimes the results returned is more than maxResults
293
+ percent_by_step = 1/(maxResults*1.05)
294
  PMIDs_bar = st.progress(0)
295
  for dz in searchterm_list:
296
  term = ''
 
353
  pmid_abs[pmid] = abstract
354
  abstracts_bar.progress(round(len(pmid_abs)*percent_by_step,1))
355
  abstracts_bar.empty()
356
+
357
+ st.success('Found '+str(len(pmids))+' PMIDs. Gathered '+str(len(pmid_abs))+' Relevant Abstracts.')
358
 
359
  return pmid_abs
360