georgioup commited on
Commit
af29035
·
verified ·
1 Parent(s): 9bec205

Upload download_script.py

Browse files
Files changed (1) hide show
  1. download_script.py +20 -0
download_script.py ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from huggingface_hub import snapshot_download
2
+
3
+ # Define the repository ID from your image
4
+ repo_id = "syn-nomos/Greek_Legal_Reference_Texts"
5
+
6
+ # Define what you want to include
7
+ # This includes the entire 'files' folder and the specific csv
8
+ allow_patterns = ["files/*", "dataset_metadata.csv"]
9
+
10
+ print(f"Starting download from {repo_id}...")
11
+
12
+ local_dir = snapshot_download(
13
+ repo_id=repo_id,
14
+ repo_type="dataset",
15
+ allow_patterns=allow_patterns,
16
+ local_dir="./greek_legal_data", # The folder where files will be saved
17
+ resume_download=True
18
+ )
19
+
20
+ print(f"Download complete! Files are located in: {local_dir}")