Spaces:
Running
on
Zero
Running
on
Zero
Update main.py
Browse files
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] + ")
|
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 |
|