File size: 574 Bytes
e664346
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
af29035
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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}")