Spaces:
Runtime error
Runtime error
| name: Deploy to Hugging Face Space | |
| on: | |
| push: | |
| branches: [ main ] | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Set up Python | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: '3.9' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| - name: Deploy to Hugging Face Space | |
| uses: huggingface/huggingface_hub@main | |
| with: | |
| repo_id: ${{ secrets.HF_REPO_ID }} | |
| token: ${{ secrets.HF_TOKEN }} | |
| space_sdk: gradio | |
| space_hardware: cpu | |
| space_repo_type: app |