M-Rique commited on
Commit
2df5971
·
1 Parent(s): 4a3edbf

Just don't remove folder

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -80,8 +80,8 @@ def upload_to_hf_and_remove(folder_paths: list[str]):
80
  print(f"Copying {folder_path} to temporary directory...")
81
  shutil.copytree(folder_path, target_path)
82
  # Remove the original folder after copying
83
- shutil.rmtree(folder_path)
84
- print(f"Original folder {folder_path} removed.")
85
 
86
  # Upload the entire temporary directory
87
  print(f"Uploading all folders to {repo_id}...")
 
80
  print(f"Copying {folder_path} to temporary directory...")
81
  shutil.copytree(folder_path, target_path)
82
  # Remove the original folder after copying
83
+ # shutil.rmtree(folder_path)
84
+ # print(f"Original folder {folder_path} removed.")
85
 
86
  # Upload the entire temporary directory
87
  print(f"Uploading all folders to {repo_id}...")