Spaces:
Runtime error
Runtime error
Upload download_data.py with huggingface_hub
Browse files- 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!")
|