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

Update download_script.py

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