Spaces:
Running
on
Zero
Running
on
Zero
Update main.py
Browse files
main.py
CHANGED
@@ -31,9 +31,10 @@ def search(query, k):
|
|
31 |
|
32 |
for i in range(k):
|
33 |
search_results += '### ' + top_five["bib_dict"].values[i]["title"] + '\n'
|
34 |
-
search_results += top_five["bib_dict"].values[i]["citation"]
|
35 |
if top_five["pub_url"].values[i] is not None:
|
36 |
-
search_results += "
|
|
|
37 |
search_results += "\n```\n"
|
38 |
search_results += json.dumps(top_five["bibtex"].values[i], indent=4).replace('\\n', '\n').replace('\\t', '\t').strip("\"")
|
39 |
search_results += "```\n"
|
|
|
31 |
|
32 |
for i in range(k):
|
33 |
search_results += '### ' + top_five["bib_dict"].values[i]["title"] + '\n'
|
34 |
+
search_results += top_five["bib_dict"].values[i]["citation"] + "\n"
|
35 |
if top_five["pub_url"].values[i] is not None:
|
36 |
+
search_results += "[Paper](" + top_five["pub_url"].values[i] + ")"
|
37 |
+
search_results += top_five["bib_dict"].values[i]["num_citations"] + " citations\n"
|
38 |
search_results += "\n```\n"
|
39 |
search_results += json.dumps(top_five["bibtex"].values[i], indent=4).replace('\\n', '\n').replace('\\t', '\t').strip("\"")
|
40 |
search_results += "```\n"
|