Spaces:
Runtime error
Runtime error
Commit
·
3a0cf71
1
Parent(s):
2915f93
Update classify_abs.py
Browse files- classify_abs.py +5 -5
classify_abs.py
CHANGED
|
@@ -305,11 +305,11 @@ def streamlit_getAbs(searchterm_list:Union[List[str],List[int],str], maxResults:
|
|
| 305 |
root = ET.fromstring(r.content)
|
| 306 |
|
| 307 |
for result in root.iter('IdList'):
|
| 308 |
-
|
| 309 |
-
|
| 310 |
-
|
| 311 |
-
|
| 312 |
-
|
| 313 |
|
| 314 |
url = 'https://www.ebi.ac.uk/europepmc/webservices/rest/search?query='+query+'&resulttype=core'
|
| 315 |
r = requests.get(url)
|
|
|
|
| 305 |
root = ET.fromstring(r.content)
|
| 306 |
|
| 307 |
for result in root.iter('IdList'):
|
| 308 |
+
for pmid in result.iter('Id'):
|
| 309 |
+
if len(pmids) >= maxResults:
|
| 310 |
+
break
|
| 311 |
+
pmids.add(pmid.text)
|
| 312 |
+
PMIDs_bar.progress(min(round(len(pmids)*percent_by_step,1),1.0))
|
| 313 |
|
| 314 |
url = 'https://www.ebi.ac.uk/europepmc/webservices/rest/search?query='+query+'&resulttype=core'
|
| 315 |
r = requests.get(url)
|