davanstrien HF Staff commited on
Commit
a9d43cf
·
1 Parent(s): a9127b0

Fix papers not yet indexed by Hugging Face in

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -103,11 +103,12 @@ def get_papers(
103
  for paper in already_claimed[False]:
104
  url = f"https://huggingface.co/papers/{paper['id']}"
105
  results += f"- [{paper['title']}]({url})\n"
106
- for papers in papers_indexed_by_hf[False]:
107
  results += f"# Papers not yet indexed by Hugging Face\n"
108
- for paper in papers:
109
- url = f"https://huggingface.co/papers/{paper['id']}"
110
- results += f"- [{paper['title']}]({url})\n"
 
111
 
112
 
113
  with gr.Blocks() as demo:
 
103
  for paper in already_claimed[False]:
104
  url = f"https://huggingface.co/papers/{paper['id']}"
105
  results += f"- [{paper['title']}]({url})\n"
106
+ for paper in papers_indexed_by_hf[False]:
107
  results += f"# Papers not yet indexed by Hugging Face\n"
108
+ paper_title = paper["title"]
109
+ arxiv_id = paper["externalIds"]["ArXiv"]
110
+ url = f"https://huggingface.co/papers/{arxiv_id}"
111
+ results += f"- [{paper_title}]({url})\n"
112
 
113
 
114
  with gr.Blocks() as demo: