Spaces:
Running
on
Zero
Running
on
Zero
Update main.py
Browse files
main.py
CHANGED
@@ -51,7 +51,7 @@ def search(query: str, k: int) -> tuple[str]:
|
|
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 += "\
|
55 |
|
56 |
return search_results, references
|
57 |
|
|
|
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 += "\nIf these abstract aren't relevant to the followign query, please say that there is not much research in that area. Response to the following query from the perspective of the provided abstracts only:"
|
55 |
|
56 |
return search_results, references
|
57 |
|