ccm commited on
Commit
92714f7
·
verified ·
1 Parent(s): 1f39bff

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -45,7 +45,7 @@ def search(query: str, k: int):
45
  for i in range(k):
46
  search_results += "### " + top_five["bib_dict"].values[i]["title"] + "\n\n"
47
  search_results += str(int(100*D[0][i])) + "% relevant "
48
- if top_five["pub_url"].values[i] is not None:
49
  search_results += "/ [Full Text](https://scholar.google.com/citations?view_op=view_citation&citation_for_view=" + top_five["author_pub_id"].values[i] + ") "
50
  if top_five["citedby_url"].values[i] is not None:
51
  search_results += (
 
45
  for i in range(k):
46
  search_results += "### " + top_five["bib_dict"].values[i]["title"] + "\n\n"
47
  search_results += str(int(100*D[0][i])) + "% relevant "
48
+ if top_five["author_pub_id"].values[i] is not None:
49
  search_results += "/ [Full Text](https://scholar.google.com/citations?view_op=view_citation&citation_for_view=" + top_five["author_pub_id"].values[i] + ") "
50
  if top_five["citedby_url"].values[i] is not None:
51
  search_results += (