Update app.py
Browse files
app.py
CHANGED
@@ -52,7 +52,7 @@ def get_keybert_query(text, top_n=10):
|
|
52 |
return query
|
53 |
|
54 |
# --- PubMed retrieval ---
|
55 |
-
def
|
56 |
ncbi_url = 'https://eutils.ncbi.nlm.nih.gov/entrez/eutils/'
|
57 |
search_url = f"{ncbi_url}esearch.fcgi?db=pubmed&term={query}&retmax={n}&sort=relevance&retmode=xml"
|
58 |
r = requests.get(search_url)
|
|
|
52 |
return query
|
53 |
|
54 |
# --- PubMed retrieval ---
|
55 |
+
def retrieve_pubmed_abstracts_simple(query, n=100):
|
56 |
ncbi_url = 'https://eutils.ncbi.nlm.nih.gov/entrez/eutils/'
|
57 |
search_url = f"{ncbi_url}esearch.fcgi?db=pubmed&term={query}&retmax={n}&sort=relevance&retmode=xml"
|
58 |
r = requests.get(search_url)
|