Greek_Legal_Reference_Texts / download_script.py
georgioup's picture
Update download_script.py
e664346 verified
from huggingface_hub import snapshot_download
repo_id = "syn-nomos/Greek_Legal_Reference_Texts"
# Define what you want to include
# This includes the entire 'files' folder and the specific csv
allow_patterns = ["files/*", "dataset_metadata.csv"]
print(f"Starting download from {repo_id}...")
local_dir = snapshot_download(
repo_id=repo_id,
repo_type="dataset",
allow_patterns=allow_patterns,
local_dir="./greek_legal_data", # The folder where files will be saved
resume_download=True
)
print(f"Download complete! Files are located in: {local_dir}")