#!/bin/bash # ----------------------------- # CONFIGURATION # ----------------------------- HF_USERNAME="shyameati" HF_TOKEN="YOUR_HF_WRITE_TOKEN_HERE" HF_SPACE="transcripts-api" # ----------------------------- # GIT SETUP # ----------------------------- echo "Configuring Git remote with embedded HF token..." git remote set-url origin https://$HF_USERNAME:$HF_TOKEN@huggingface.co/spaces/$HF_USERNAME/$HF_SPACE # ----------------------------- # COMMIT + PUSH # ----------------------------- echo "Staging changes..." git add . echo "Committing..." git commit -m "Auto-update from script" || echo "No changes to commit" echo "Pushing to Hugging Face..." git push origin main echo "Done."