File size: 570 Bytes
1e26b08 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
#!/bin/bash
# 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!"
|