Spaces:
Running
Running
| name: Sync with Hugging Face Hub | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v4 | |
| - name: Install Hugging Face CLI | |
| run: pip install -U "huggingface_hub[cli]" | |
| - name: Upload to Hugging Face Space | |
| env: | |
| HF_TOKEN: ${{ secrets.HF_TOKEN }} | |
| run: | | |
| hf upload Spring-0/face-censor . . \ | |
| --repo-type space \ | |
| --token "$HF_TOKEN" |