pritamdeka commited on
Commit
2855c3b
·
verified ·
1 Parent(s): 2ff0c49

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -52,7 +52,7 @@ def get_keybert_query(text, top_n=10):
52
  return query
53
 
54
  # --- PubMed retrieval ---
55
- def retrieve_pubmed_abstracts_vintage(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)
 
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)