demo / periodically_downloader.sh
Esml's picture
added a simple shell script that periodically downloads a file from a dataset using the CLI
4fd3cf1
COUNTER=0
while true;
files=$(ls -l);
echo "The files in the current directory are: $files";
echo "download counter: $COUNTER";
echo "\n------------------------------------\n";
do huggingface-cli download julien-c/titanic-survival titanic.csv --repo-type dataset --local-dir "./" --quiet;
sleep 30;
COUNTER=`expr $COUNTER + 1`
if [[ "$COUNTER" == '3' ]]
then
echo "Finall number of downloads: $COUNTER! \n"
break
fi
done