SyncDub / .github /workflows /update_space.yml
pranavinani's picture
Upload folder using huggingface_hub
25ccbe8 verified
raw
history blame contribute delete
663 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 gradio
- name: Log in to Hugging Face
run: python -c 'import huggingface_hub; huggingface_hub.login(token="${{ secrets.hf_token }}")'
- name: Deploy to Hugging Face Spaces
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }} # Add this line
run: gradio deploy --title "SyncDub" --app-file gradio_app.py