vengen9840 commited on
Commit
ee6b3bf
·
verified ·
1 Parent(s): deedd65

Upload download_data.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. download_data.py +6 -0
download_data.py ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ from huggingface_hub import hf_hub_download
2
+ import os
3
+ os.makedirs("data", exist_ok=True)
4
+ for f in ["papers.db", "faiss_index.bin"]:
5
+ hf_hub_download(repo_id="vengen9840/paperlens-data", filename=f, repo_type="dataset", local_dir="data")
6
+ print("Data ready!")