models4world commited on
Commit
1e26b08
·
verified ·
1 Parent(s): 4de59b1

Upload upload_f.sh with huggingface_hub

Browse files
Files changed (1) hide show
  1. upload_f.sh +21 -0
upload_f.sh ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ # Define the target repository and destination folder
4
+ REPO="models4world/checkpoint-100"
5
+
6
+ # Exclude the "global_step100" folder
7
+ EXCLUDE_FOLDER="global_step100"
8
+
9
+ # Loop through all files and folders in the current directory
10
+ for item in *; do
11
+ # Check if the item is not the excluded folder
12
+ if [[ "$item" != "$EXCLUDE_FOLDER" ]]; then
13
+ # Upload the item using huggingface-cli
14
+ echo "Uploading $item to $REPO..."
15
+ huggingface-cli upload "$REPO" "$item"
16
+ else
17
+ echo "Skipping excluded folder: $EXCLUDE_FOLDER"
18
+ fi
19
+ done
20
+
21
+ echo "Upload complete!"