Spaces:
Sleeping
Sleeping
wzkariampuzha
commited on
Commit
•
c058e52
1
Parent(s):
eaaa784
Update classify_abs.py
Browse files- classify_abs.py +2 -2
classify_abs.py
CHANGED
@@ -308,7 +308,7 @@ def streamlit_getAbs(searchterm_list:Union[List[str],List[int],str], maxResults:
|
|
308 |
break
|
309 |
pmidlist = [pmid.text for pmid in result.iter('Id')]
|
310 |
pmids.update(pmidlist)
|
311 |
-
PMIDs_bar.progress(min(round(len(pmids)*percent_by_step,1),1.0)
|
312 |
|
313 |
url = 'https://www.ebi.ac.uk/europepmc/webservices/rest/search?query='+query+'&resulttype=core'
|
314 |
r = requests.get(url)
|
@@ -322,7 +322,7 @@ def streamlit_getAbs(searchterm_list:Union[List[str],List[int],str], maxResults:
|
|
322 |
pmid = pmidlist[0]
|
323 |
if pmid[0].isdigit():
|
324 |
pmids.add(pmid)
|
325 |
-
PMIDs_bar.progress(min(round(len(pmids)*percent_by_step,1),1.0)
|
326 |
PMIDs_bar.empty()
|
327 |
|
328 |
with st.success('Found '+str(len(pmids))+' PMIDs. Gathering Abstracts and Filtering...'):
|
|
|
308 |
break
|
309 |
pmidlist = [pmid.text for pmid in result.iter('Id')]
|
310 |
pmids.update(pmidlist)
|
311 |
+
PMIDs_bar.progress(min(round(len(pmids)*percent_by_step,1),1.0))
|
312 |
|
313 |
url = 'https://www.ebi.ac.uk/europepmc/webservices/rest/search?query='+query+'&resulttype=core'
|
314 |
r = requests.get(url)
|
|
|
322 |
pmid = pmidlist[0]
|
323 |
if pmid[0].isdigit():
|
324 |
pmids.add(pmid)
|
325 |
+
PMIDs_bar.progress(min(round(len(pmids)*percent_by_step,1),1.0))
|
326 |
PMIDs_bar.empty()
|
327 |
|
328 |
with st.success('Found '+str(len(pmids))+' PMIDs. Gathering Abstracts and Filtering...'):
|