Commit
·
b4ee178
1
Parent(s):
3a0a966
update message
Browse files
app.py
CHANGED
@@ -40,10 +40,10 @@ def get_paper_title_from_arxiv_id(arxiv_id):
|
|
40 |
|
41 |
|
42 |
def format_recommendation_into_markdown(arxiv_id, recommendations):
|
43 |
-
title = get_paper_title_from_arxiv_id(arxiv_id)
|
44 |
-
url = f"https://huggingface.co/papers/{arxiv_id}"
|
45 |
-
|
46 |
-
comment
|
47 |
for r in recommendations:
|
48 |
hub_paper_url = f"https://huggingface.co/papers/{r['externalIds']['ArXiv']}"
|
49 |
comment += f"* [{r['title']}]({hub_paper_url}) ({r['year']})\n"
|
|
|
40 |
|
41 |
|
42 |
def format_recommendation_into_markdown(arxiv_id, recommendations):
|
43 |
+
# title = get_paper_title_from_arxiv_id(arxiv_id)
|
44 |
+
# url = f"https://huggingface.co/papers/{arxiv_id}"
|
45 |
+
# comment = f"Recommended papers for [{title}]({url})\n\n"
|
46 |
+
comment = "The following papers were recommended by the Semantic Scholar API \n\n"
|
47 |
for r in recommendations:
|
48 |
hub_paper_url = f"https://huggingface.co/papers/{r['externalIds']['ArXiv']}"
|
49 |
comment += f"* [{r['title']}]({hub_paper_url}) ({r['year']})\n"
|