Download .github/workflows/update_space.yml from abidlabs/same-test: direct link, hf CLI and curl.
- Browser
- Download file 642 Bytes
-
https://huggingface.co/spaces/abidlabs/same-test/resolve/main/.github/workflows/update_space.yml
- Command line
-
hf download hf://spaces/abidlabs/same-test/.github/workflows/update_space.yml
-
curl -L -o update_space.yml https://huggingface.co/spaces/abidlabs/same-test/resolve/main/.github/workflows/update_space.yml
642 Bytes
| name: Run Python script | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v2 | |
| - name: Set up Python | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: '3.9' | |
| - name: Install Gradio | |
| run: python -m pip install https://gradio-builds.s3.amazonaws.com/c0138fa3cf227b01cdc468c7817298d5f7849c9e/gradio-3.32.0-py3-none-any.whl | |
| - name: Log in to Hugging Face | |
| run: python -c 'import huggingface_hub; huggingface_hub.login(token="${{ secrets.hf_token }}")' | |
| - name: Deploy to Spaces | |
| run: gradio deploy | |