Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Error seems removed
Browse files
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 |
-
|
| 84 |
-
|
| 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}...")
|