Spaces:
Running
Running
pragnakalp
commited on
Commit
•
9a7c6fb
1
Parent(s):
995acbe
Update save_data.py
Browse files- save_data.py +13 -13
save_data.py
CHANGED
@@ -21,21 +21,21 @@ REPOSITORY_DIR = "data"
|
|
21 |
LOCAL_DIR = 'data_local'
|
22 |
os.makedirs(LOCAL_DIR,exist_ok=True)
|
23 |
|
24 |
-
try:
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
|
32 |
-
except:
|
33 |
-
|
34 |
|
35 |
-
repo = Repository(
|
36 |
-
|
37 |
-
)
|
38 |
-
repo.git_pull()
|
39 |
# repo = Repository(local_dir="ocr_data", clone_from=DATASET_REPO_URL, use_auth_token=HF_TOKEN)
|
40 |
# repo.git_pull()
|
41 |
|
|
|
21 |
LOCAL_DIR = 'data_local'
|
22 |
os.makedirs(LOCAL_DIR,exist_ok=True)
|
23 |
|
24 |
+
# try:
|
25 |
+
# hf_hub_download(
|
26 |
+
# repo_id=DATASET_REPO_ID,
|
27 |
+
# filename=DATA_FILENAME,
|
28 |
+
# cache_dir=DATA_DIRNAME,
|
29 |
+
# force_filename=DATA_FILENAME
|
30 |
+
# )
|
31 |
|
32 |
+
# except:
|
33 |
+
# print("file not found")
|
34 |
|
35 |
+
# repo = Repository(
|
36 |
+
# local_dir="ocr_data", clone_from=DATASET_REPO_URL, use_auth_token=HF_TOKEN
|
37 |
+
# )
|
38 |
+
# repo.git_pull()
|
39 |
# repo = Repository(local_dir="ocr_data", clone_from=DATASET_REPO_URL, use_auth_token=HF_TOKEN)
|
40 |
# repo.git_pull()
|
41 |
|