| # Define the target repository and destination folder | |
| REPO="models4world/checkpoint-100" | |
| # Exclude the "global_step100" folder | |
| EXCLUDE_FOLDER="global_step100" | |
| # Loop through all files and folders in the current directory | |
| for item in *; do | |
| # Check if the item is not the excluded folder | |
| if [[ "$item" != "$EXCLUDE_FOLDER" ]]; then | |
| # Upload the item using huggingface-cli | |
| echo "Uploading $item to $REPO..." | |
| huggingface-cli upload "$REPO" "$item" | |
| else | |
| echo "Skipping excluded folder: $EXCLUDE_FOLDER" | |
| fi | |
| done | |
| echo "Upload complete!" | |