On branch Master and Python 3.13 #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy to HuggingFace | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - master | |
| 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.13' | |
| - name: Install Gradio | |
| run: python -m pip install gradio | |
| - 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 |