ccm commited on
Commit
5852967
β€’
1 Parent(s): fdd08a1

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -49,7 +49,7 @@ def search(query: str, k: int) -> tuple[str]:
49
  for i in range(k):
50
  search_results += top_five["bib_dict"].values[i]["abstract"] + "\n"
51
  references += str(i+1) + ". " + ", ".join([author.split(" ")[-1] for author in top_five["bib_dict"].values[i]["author"].split(" and ")]) + ". (" + str(int(top_five["bib_dict"].values[i]["pub_year"])) + "). [" + top_five["bib_dict"].values[i]["title"] + "]" \
52
- + "(https://scholar.google.com/citations?view_op=view_citation&citation_for_view=" + top_five["author_pub_id"].values[i] + ")\n"
53
 
54
  search_results += "\nSummarize the above abstracts as you respond to the following query:"
55
 
 
49
  for i in range(k):
50
  search_results += top_five["bib_dict"].values[i]["abstract"] + "\n"
51
  references += str(i+1) + ". " + ", ".join([author.split(" ")[-1] for author in top_five["bib_dict"].values[i]["author"].split(" and ")]) + ". (" + str(int(top_five["bib_dict"].values[i]["pub_year"])) + "). [" + top_five["bib_dict"].values[i]["title"] + "]" \
52
+ + "(https://scholar.google.com/citations?view_op=view_citation&citation_for_view=" + top_five["author_pub_id"].values[i] + ").\n"
53
 
54
  search_results += "\nSummarize the above abstracts as you respond to the following query:"
55