Spaces:
Runtime error
Runtime error
Download download_data.py from vengen9840/PaperLens: direct link, hf CLI and curl.
- Browser
- Download file 304 Bytes
-
https://huggingface.co/spaces/vengen9840/PaperLens/resolve/main/download_data.py
- Command line
-
hf download hf://spaces/vengen9840/PaperLens/download_data.py
-
curl -L -o download_data.py https://huggingface.co/spaces/vengen9840/PaperLens/resolve/main/download_data.py
304 Bytes
| from huggingface_hub import hf_hub_download | |
| import os | |
| REPO_ID = os.getenv("HF_REPO_ID", "vengen9840/paperlens-data") | |
| os.makedirs("data", exist_ok=True) | |
| for f in ["papers.db", "faiss_index.bin"]: | |
| hf_hub_download(repo_id=REPO_ID, filename=f, repo_type="dataset", local_dir="data") | |
| print("Data ready!") |