Anuj-Panthri commited on
Commit
ac69eba
·
1 Parent(s): b2d3370

removed subprocess

Browse files
Files changed (1) hide show
  1. restore.py +7 -2
restore.py CHANGED
@@ -12,7 +12,12 @@ dataset_save_path = "."
12
  # local_dir=work_dir,
13
  # )
14
 
 
15
 
16
- import subprocess
 
 
 
17
 
18
- subprocess.run([f"git clone https://huggingface.co/datasets/Anuj-Panthri/JupyterLab_Storage {work_dir}"])
 
 
12
  # local_dir=work_dir,
13
  # )
14
 
15
+ import git
16
 
17
+ # Clone a remote repository
18
+ repo_url = "https://huggingface.co/datasets/Anuj-Panthri/JupyterLab_Storage"
19
+ repo = git.Repo.clone_from(repo_url, work_dir)
20
+ print(f'Repository Cloned at location: {work_dir}')
21
 
22
+ # import subprocess
23
+ # subprocess.run([f"git clone https://huggingface.co/datasets/Anuj-Panthri/JupyterLab_Storage {work_dir}"])