Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -93,7 +93,7 @@ def preprocess(query: str, k: int) -> tuple[str, str]:
|
|
93 |
for i in range(k):
|
94 |
year = str(int(top_five["bib_dict"].values[i]["pub_year"]))
|
95 |
abstract = top_five["bib_dict"].values[i]["abstract"]
|
96 |
-
url = "
|
97 |
title = top_five["bib_dict"].values[i]["title"]
|
98 |
last_names = [
|
99 |
author.split(" ")[-1]
|
|
|
93 |
for i in range(k):
|
94 |
year = str(int(top_five["bib_dict"].values[i]["pub_year"]))
|
95 |
abstract = top_five["bib_dict"].values[i]["abstract"]
|
96 |
+
url = "https://scholar.google.com/citations?view_op=view_citation&citation_for_view=" + top_five["author_pub_id"].values[i]
|
97 |
title = top_five["bib_dict"].values[i]["title"]
|
98 |
last_names = [
|
99 |
author.split(" ")[-1]
|