set -e | |
echo "Copying over the optimized model from project folder for huggingface front-end" >> ~/log_file.txt | |
cp /home/sivakornchong/hdb_project/model/finalized_model2.sav /home/sivakornchong/HDB_resale_predict/ | |
echo "Copied" >> ~/log_file.txt | |
GIT='git --git-dir=/home/sivakornchong/HDB_resale_predict/.git' | |
cd /home/sivakornchong/HDB_resale_predict/ | |
$GIT add . | |
$GIT commit -m "VM update" | |
$GIT push | |
echo "Pushed to huggingface" >> ~/log_file.txt | |