ccm commited on
Commit
8acbaa0
·
verified ·
1 Parent(s): 1166524

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -2
main.py CHANGED
@@ -31,14 +31,14 @@ def search(query, k):
31
 
32
  for i in range(k):
33
  search_results += '### ' + top_five["bib_dict"].values[i]["title"] + '\n'
34
- search_results += top_five["bib_dict"].values[i]["citation"] + "\n"
35
  if top_five["pub_url"].values[i] is not None:
36
  search_results += "[Full Text](" + top_five["pub_url"].values[i] + ") "
37
  if top_five["citedby_url"].values[i] is not None:
38
  search_results += "[Cited By](https://scholarl.google.com" + top_five["citedby_url"].values[i] + ") "
39
  if top_five["url_related_articles"].values[i] is not None:
40
  search_results += "[Related Articles](https://scholarl.google.com" + top_five["url_related_articles"].values[i] + ") "
41
- search_results += str(top_five["num_citations"].values[i]) + " citations\n"
42
  search_results += "\n```\n"
43
  search_results += json.dumps(top_five["bibtex"].values[i], indent=4).replace('\\n', '\n').replace('\\t', '\t').strip("\"")
44
  search_results += "```\n"
 
31
 
32
  for i in range(k):
33
  search_results += '### ' + top_five["bib_dict"].values[i]["title"] + '\n'
34
+ search_results += top_five["bib_dict"].values[i]["citation"] + "\n\n"
35
  if top_five["pub_url"].values[i] is not None:
36
  search_results += "[Full Text](" + top_five["pub_url"].values[i] + ") "
37
  if top_five["citedby_url"].values[i] is not None:
38
  search_results += "[Cited By](https://scholarl.google.com" + top_five["citedby_url"].values[i] + ") "
39
  if top_five["url_related_articles"].values[i] is not None:
40
  search_results += "[Related Articles](https://scholarl.google.com" + top_five["url_related_articles"].values[i] + ") "
41
+ search_results += "\n\n" + str(top_five["num_citations"].values[i]) + " citations\n"
42
  search_results += "\n```\n"
43
  search_results += json.dumps(top_five["bibtex"].values[i], indent=4).replace('\\n', '\n').replace('\\t', '\t').strip("\"")
44
  search_results += "```\n"