customercore / .github /workflows /hf_deploy.yml
saibalajiomg's picture
Upload folder using huggingface_hub
afd0cbd verified
Raw
History Blame Contribute Delete
634 Bytes
name: Deploy to Hugging Face Spaces
on:
push:
branches: [ main ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install huggingface_hub
- name: Deploy to Hugging Face Spaces
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
HF_SPACE: ${{ secrets.HF_SPACE }}
run: |
python src/ml/deploy_to_hf.py