link to arxiv-sanity-lite instead of directly to arxiv

This commit is contained in:
Andrej Karpathy 2022-01-22 16:36:11 -08:00
parent 48a7e01aa2
commit f980c7947a

View File

@ -158,6 +158,8 @@ def render_recommendations(user, tags, tag_pids, tag_scores):
summary = summary[:min(500, len(summary))]
if len(summary) == 500:
summary += '...'
# create the url that will feature this paper on top and also show the most similar papers
url = 'https://arxiv-sanity-lite.com/?rank=pid&pid=' + pid
parts.append(
"""
<tr>
@ -168,7 +170,7 @@ def render_recommendations(user, tags, tag_pids, tag_scores):
<div class="u">%s</div>
</td>
</tr>
""" % (score, p['link'], p['title'], max_source_tag[pid], authors, summary)
""" % (score, url, p['title'], max_source_tag[pid], authors, summary)
)
# render the final html