Spaces:
Running
on
Zero
Running
on
Zero
Update main.py
Browse files
main.py
CHANGED
@@ -44,7 +44,7 @@ def search(query: str, k: int):
|
|
44 |
|
45 |
for i in range(k):
|
46 |
search_results += "### " + top_five["bib_dict"].values[i]["title"] + "\n\n"
|
47 |
-
search_results += str(
|
48 |
if top_five["pub_url"].values[i] is not None:
|
49 |
search_results += "[Full Text](" + top_five["pub_url"].values[i] + ") "
|
50 |
if top_five["citedby_url"].values[i] is not None:
|
|
|
44 |
|
45 |
for i in range(k):
|
46 |
search_results += "### " + top_five["bib_dict"].values[i]["title"] + "\n\n"
|
47 |
+
search_results += str(int(100*D[0][i]))) + "% relevant "
|
48 |
if top_five["pub_url"].values[i] is not None:
|
49 |
search_results += "[Full Text](" + top_five["pub_url"].values[i] + ") "
|
50 |
if top_five["citedby_url"].values[i] is not None:
|